Skip to content

Commit

Permalink
Use template functions to quote env vars
Browse files Browse the repository at this point in the history
This allows helm to intelligently quote env var values, e.g. in order to pass json arrays as values
  • Loading branch information
mcquinne authored and ividito committed Jan 16, 2025
1 parent 7d02583 commit e485580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm-chart/eoapi/templates/services/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: {{ $serviceName }}-envvar-configmap-{{ $.Release.Name }}
data:
{{- range $envKey, $envValue := index $v "settings" "envVars" }}
{{ upper $envKey }}: "{{ $envValue }}"
{{ upper $envKey }}: {{ $envValue | quote }}
{{- end }}
---
{{/* END: if index $v "enabled" */}}
Expand Down

0 comments on commit e485580

Please sign in to comment.