From 192c90e673b55485342653d7d2e2ee06ee27c6b6 Mon Sep 17 00:00:00 2001 From: Evan McQuinn Date: Sat, 28 Dec 2024 10:21:17 -0700 Subject: [PATCH] Use template functions to quote env vars This allows helm to intelligently quote env var values, e.g. in order to pass json arrays as values --- helm-chart/eoapi/templates/services/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-chart/eoapi/templates/services/configmap.yaml b/helm-chart/eoapi/templates/services/configmap.yaml index 92be1d3..6533f5a 100644 --- a/helm-chart/eoapi/templates/services/configmap.yaml +++ b/helm-chart/eoapi/templates/services/configmap.yaml @@ -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" */}}