Add subPath property for secrets (#1)

* Add subPath property for secrets
This commit is contained in:
pnieweglowski
2023-06-02 21:44:09 +02:00
committed by GitHub
parent ffeba134d6
commit 2bbbb208f4
5 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ type: library
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.3.0
@@ -13,11 +13,17 @@ volumeMounts: &volumeMounts
{{- range .Values.sealedFileSecrets }}
- name: {{ .name }}
mountPath: {{ .path }}
{{- if .subPath}}
subPath: {{ .subPath }}
{{- end }}
readOnly: true
{{- end }}
{{- range .Values.fileSecrets }}
- name: {{ .name }}
mountPath: {{ .path }}
{{- if .subPath}}
subPath: {{ .subPath }}
{{- end }}
readOnly: true
{{- end }}
{{- range .Values.existingFileSecrets }}