Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.13.2] - 2025-06-04

### Changed

- Add `SecretMount` class for container deployments

## [1.13.1] - 2025-05-22

### Changed
Expand Down
2 changes: 1 addition & 1 deletion datacrunch/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '1.13.1'
VERSION = '1.13.2'
1 change: 1 addition & 0 deletions datacrunch/containers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
HealthcheckSettings,
EntrypointOverridesSettings,
VolumeMount,
SecretMount,
VolumeMountType,
Container,
ContainerRegistryCredentials,
Expand Down
8 changes: 8 additions & 0 deletions datacrunch/containers/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ class VolumeMount:
size_in_mb: Optional[int] = None


@dataclass_json
@dataclass
class SecretMount:
mount_path: str
secret_name: str
type: VolumeMountType = VolumeMountType.SECRET


@dataclass_json
@dataclass
class Container:
Expand Down
6 changes: 3 additions & 3 deletions examples/containers/container_deployments_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
UtilizationScalingTrigger,
HealthcheckSettings,
VolumeMount,
SecretMount,
ContainerRegistrySettings,
Deployment,
VolumeMountType,
Expand Down Expand Up @@ -102,10 +103,9 @@ def main() -> None:
mount_path="/data"
),
# Fileset secret
VolumeMount(
type=VolumeMountType.SECRET,
SecretMount(
mount_path="/path/to/mount",
name="my-fileset-secret" # This fileset secret must be created beforehand
secret_name="my-fileset-secret" # This fileset secret must be created beforehand
)
],
env=[
Expand Down