Skip to content

Commit f758aaa

Browse files
committed
added func unmount_fileset_secret
1 parent 4c34faa commit f758aaa

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Added
11+
12+
- Function to unmount fileset secret from a deployment
13+
1014
### Changed
1115

1216
- This file and CONTRIBUTING.rst to markdown

datacrunch/containers/containers.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,3 +1008,15 @@ def create_fileset_secret_from_file_paths(self, secret_name: str, file_paths: Li
10081008
"name": secret_name,
10091009
"files": processed_files
10101010
})
1011+
1012+
def unmount_fileset_secret(self, deployment_name: str, secret_name: str) -> None:
1013+
"""Unmounts a fileset secret from a deployment.
1014+
1015+
Args:
1016+
deployment_name: Name of the deployment.
1017+
secret_name: Name of the secret to unmount.
1018+
"""
1019+
self.client.delete(FILESET_SECRETS_ENDPOINT, {
1020+
"deployment_name": deployment_name,
1021+
"secret_name": secret_name,
1022+
})

0 commit comments

Comments
 (0)