diff --git a/infra/charts/feast/charts/feast-jobcontroller/templates/deployment.yaml b/infra/charts/feast/charts/feast-jobcontroller/templates/deployment.yaml index c01268648a..c5ca61750c 100644 --- a/infra/charts/feast/charts/feast-jobcontroller/templates/deployment.yaml +++ b/infra/charts/feast/charts/feast-jobcontroller/templates/deployment.yaml @@ -100,12 +100,12 @@ spec: {{- range $key, $value := .Values.envOverrides }} - name: {{ printf "%s" $key | replace "." "_" | upper | quote }} - {{ - if eq (kindOf $value) "map" }} + {{- if eq (kindOf $value) "map" }} valueFrom: - {{ - toYaml $value | nindent 12 }} - {{ - else }} + {{- toYaml $value | nindent 12 }} + {{- else }} value: {{ $value | quote }} - {{ - end }} + {{- end }} {{- end }} command: diff --git a/infra/charts/feast/charts/feast-serving/templates/deployment.yaml b/infra/charts/feast/charts/feast-serving/templates/deployment.yaml index 5d54f8fd32..556af48ffb 100644 --- a/infra/charts/feast/charts/feast-serving/templates/deployment.yaml +++ b/infra/charts/feast/charts/feast-serving/templates/deployment.yaml @@ -92,12 +92,12 @@ spec: {{- range $key, $value := .Values.envOverrides }} - name: {{ printf "%s" $key | replace "." "_" | upper | quote }} - {{ - if eq (kindOf $value) "map" }} + {{- if eq (kindOf $value) "map" }} valueFrom: - {{ - toYaml $value | nindent 12 }} - {{ - else }} + {{- toYaml $value | nindent 12 }} + {{- else }} value: {{ $value | quote }} - {{ - end }} + {{- end }} {{- end }} command: