k8s-chart-helm: unify extraEnvironmentVars (#5327)

This commit is contained in:
Sébastien
2024-02-22 10:57:00 +01:00
committed by GitHub
parent e8f094dcac
commit abf1dd13d2
5 changed files with 59 additions and 4 deletions

View File

@@ -105,7 +105,12 @@ spec:
{{- if .Values.global.extraEnvironmentVars }}
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else }}
valueFrom:
{{ toYaml $value | nindent 16 | trim }}
{{- end -}}
{{- end }}
{{- end }}
{{- if .Values.filer.secretExtraEnvironmentVars }}