Skip to content

Commit 657b3b1

Browse files
committed
SecretMount
1 parent f7032cd commit 657b3b1

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.13.2] - 2025-06-04
11+
12+
### Changed
13+
14+
- Add `SecretMount` class for container deployments
15+
1016
## [1.13.1] - 2025-05-22
1117

1218
### Changed

datacrunch/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.13.1'
1+
VERSION = '1.13.2'

datacrunch/containers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
HealthcheckSettings,
77
EntrypointOverridesSettings,
88
VolumeMount,
9+
SecretMount,
910
VolumeMountType,
1011
Container,
1112
ContainerRegistryCredentials,

datacrunch/containers/containers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ class VolumeMount:
132132
size_in_mb: Optional[int] = None
133133

134134

135+
@dataclass_json
136+
@dataclass
137+
class SecretMount:
138+
mount_path: str
139+
secret_name: str
140+
type: VolumeMountType = VolumeMountType.SECRET
141+
142+
135143
@dataclass_json
136144
@dataclass
137145
class Container:

examples/containers/container_deployments_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
UtilizationScalingTrigger,
2222
HealthcheckSettings,
2323
VolumeMount,
24+
SecretMount,
2425
ContainerRegistrySettings,
2526
Deployment,
2627
VolumeMountType,
@@ -102,10 +103,9 @@ def main() -> None:
102103
mount_path="/data"
103104
),
104105
# Fileset secret
105-
VolumeMount(
106-
type=VolumeMountType.SECRET,
106+
SecretMount(
107107
mount_path="/path/to/mount",
108-
name="my-fileset-secret" # This fileset secret must be created beforehand
108+
secret_name="my-fileset-secret" # This fileset secret must be created beforehand
109109
)
110110
],
111111
env=[

0 commit comments

Comments
 (0)