Skip to content

Commit 6c6a453

Browse files
committed
chart: fix generating extra ConfigMaps
The tpl invocation on (toYaml $value) breaks the rendered output by removing the newline character at the beginning the $value element. This commit factors out the tpl invocation to be called only on the actual data value, properly separating the ConfigMap's data entries.
1 parent ff95f55 commit 6c6a453

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deployments/helm/cvmfs-csi/templates/extra-configmaps.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ metadata:
1010
labels:
1111
{{- include "cvmfs-csi.common.metaLabels" $ | nindent 4 }}
1212
data:
13-
{{- tpl (toYaml $value) $ | nindent 2 }}
13+
{{- range $dataKey, $dataValue := $value }}
14+
{{ $dataKey }}: {{ tpl (toYaml $dataValue) $ | indent 2 }}
15+
{{- end }}
1416
{{- end }}

0 commit comments

Comments
 (0)