From fedbab38ef9ca4511801547176ea05b320216284 Mon Sep 17 00:00:00 2001 From: mhaxp <87659838+mhaxp@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:23:01 +0200 Subject: [PATCH] [application] Add defaultMode to SecretVolumes and ConfigVolumes (#146) * Update values.yaml * Update _podTemplate.tpl * Update Chart.yaml * Update values.yaml --- charts/application/Chart.yaml | 2 +- charts/application/templates/_podTemplate.tpl | 6 ++++++ charts/application/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) 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: []