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

Co-authored-by: Tingluo Huang <[email protected]>
This commit is contained in:
Bassem Dghaidi
2023-03-30 09:40:28 -04:00
committed by GitHub
co-authored by Tingluo Huang
parent f5ac134787
commit 02d9add322
3 changed files with 88 additions and 28 deletions
@@ -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 }}