fix: tpl extraEnv + envMap

This commit is contained in:
devthejo 2024-06-23 15:27:58 +02:00
parent 346789c244
commit d5a0b47ce5
Signed by: devthejo
GPG key ID: C04215C627711F5C
2 changed files with 19 additions and 10 deletions

View file

@ -146,7 +146,15 @@ spec:
key: {{ .Values.application.minio.secretKeySecretKey }} key: {{ .Values.application.minio.secretKeySecretKey }}
{{- end }} {{- end }}
{{- if .Values.extraEnv }} {{- if .Values.extraEnv }}
{{ .Values.extraEnv | toYaml | nindent 12 }} {{ (tpl (.Values.extraEnv | toYaml) $) | nindent 12 }}
{{- end }}
{{- range $name, $value := .Values.envMap }}
- name: "{{ $name }}"
{{- if kindIs "string" $value }}
value: {{ (tpl $value $) | quote }}
{{- else }}
{{- (tpl ($value | toYaml) $) | nindent 14 }}
{{- end }}
{{- end }} {{- end }}
nodeSelector: nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }} {{- toYaml .Values.nodeSelector | nindent 8 }}

View file

@ -38,6 +38,7 @@ application:
jwkSecretKey: jwk.json jwkSecretKey: jwk.json
jwkOldSecretKey: jwk-old.json jwkOldSecretKey: jwk-old.json
envMap: {}
extraEnv: extraEnv:
extraVolumes: extraVolumes:
extraVolumeMounts: extraVolumeMounts: