diff --git a/charts/application/Chart.yaml b/charts/application/Chart.yaml index 1dd2fe8..cb110c2 100644 --- a/charts/application/Chart.yaml +++ b/charts/application/Chart.yaml @@ -7,4 +7,4 @@ maintainers: - name: MediaMarktSaturn url: https://github.com/MediaMarktSaturn appVersion: 1.0.0 -version: 1.24.0 +version: 1.25.0 diff --git a/charts/application/templates/_podTemplate.tpl b/charts/application/templates/_podTemplate.tpl index 65cecdd..9395c7d 100644 --- a/charts/application/templates/_podTemplate.tpl +++ b/charts/application/templates/_podTemplate.tpl @@ -295,11 +295,17 @@ spec: {{- range .Values.secretVolumes }} - name: {{ .secretName }} mountPath: {{ .mountPath }} + {{- if .defaultMode }} + defaultMode: {{ .defaultMode }} + {{- end }} readOnly: true {{- end }} {{- range .Values.configVolumes }} - name: {{ .configMapName }} mountPath: {{ .mountPath }} + {{- if .defaultMode }} + defaultMode: {{ .defaultMode }} + {{- end }} readOnly: true {{- end }} {{- if .Values.serviceAccount.secretName }} diff --git a/charts/application/values.yaml b/charts/application/values.yaml index 28cf1b6..270607c 100644 --- a/charts/application/values.yaml +++ b/charts/application/values.yaml @@ -128,11 +128,13 @@ disruptionBudget: secretVolumes: [] # - secretName: mysecret # mountPath: /mypath +# defaultMode: 420 # list of configmaps to be mounted to app pod configVolumes: [] # - configMapName: myconfigmap # mountPath: /mypath +# defaultMode: 420 # list of secret names to be used as envFrom entries secretEnvFrom: []