diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c0ad6c..c97ae6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/datacrunch/__version__.py b/datacrunch/__version__.py index 0f5d860..e187b33 100644 --- a/datacrunch/__version__.py +++ b/datacrunch/__version__.py @@ -1 +1 @@ -VERSION = '1.13.1' +VERSION = '1.13.2' diff --git a/datacrunch/containers/__init__.py b/datacrunch/containers/__init__.py index 5036b1b..6a95373 100644 --- a/datacrunch/containers/__init__.py +++ b/datacrunch/containers/__init__.py @@ -6,6 +6,7 @@ HealthcheckSettings, EntrypointOverridesSettings, VolumeMount, + SecretMount, VolumeMountType, Container, ContainerRegistryCredentials, diff --git a/datacrunch/containers/containers.py b/datacrunch/containers/containers.py index 8303003..d64c0ac 100644 --- a/datacrunch/containers/containers.py +++ b/datacrunch/containers/containers.py @@ -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: diff --git a/examples/containers/container_deployments_example.py b/examples/containers/container_deployments_example.py index f91f330..8001fb4 100644 --- a/examples/containers/container_deployments_example.py +++ b/examples/containers/container_deployments_example.py @@ -21,6 +21,7 @@ UtilizationScalingTrigger, HealthcheckSettings, VolumeMount, + SecretMount, ContainerRegistrySettings, Deployment, VolumeMountType, @@ -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=[