feat: add pre-defined secrets to csi-driver-smb addon (#1215)

* added ability to use pre-defined secrets

* renamed variables to existing_secret_name and existing_secret_namespace
This commit is contained in:
Benjamin Runnels authored and GitHub committed 2024-01-21 07:39:13 -05:00
1 parent ef8af23093
commit 7456164df0
4 files changed
+36 -2

No files matched your search

@@ -1,5 +1,6 @@
#% if csi_driver_smb|default({}) and csi_driver_smb.enabled|default(false) %#
#% for item in csi_driver_smb.storage_class %#
#% if not item.existing_secret_name %#
---
apiVersion: v1
kind: Secret
@@ -8,5 +9,6 @@ metadata:
stringData:
username: "#{ item.username }#"
password: "#{ item.password }#"
#% endif %#
#% endfor %#
#% endif %#