Fix bug preventing env variables from being specified (#2450)

Co-authored-by: Tingluo Huang <tingluohuang@github.com>
This commit is contained in:
Bassem Dghaidi
2023-03-30 15:40:28 +02:00
committed by GitHub
parent f5ac134787
commit 02d9add322
3 changed files with 88 additions and 28 deletions

View File

@@ -69,13 +69,8 @@ spec:
fieldRef:
fieldPath: metadata.namespace
{{- with .Values.env }}
{{- if kindIs "slice" .Values.env }}
{{- toYaml .Values.env | nindent 8 }}
{{- else }}
{{- range $key, $val := .Values.env }}
- name: {{ $key }}
value: {{ $val | quote }}
{{- end }}
{{- if kindIs "slice" . }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.resources }}