Skip to content

Commit 4fba001

Browse files
committed
template default_datastore_crypto_key via yaml
1 parent 7f2fd1d commit 4fba001

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/secrets_datastore_crypto_key.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ data:
2727
{{- else if .Values.st2.datastore_crypto_key }}
2828
datastore_crypto_key: {{ .Values.st2.datastore_crypto_key | b64enc }}
2929
{{- else }}
30-
datastore_crypto_key: {{ tpl (.Values.default_datastore_crypto_key | toRawJson) . | b64enc }}
30+
{{/* We template in Yaml to avoid excessive escaping of quotes in Json */}}
31+
datastore_crypto_key: {{ tpl (.Values.default_datastore_crypto_key | toYaml) . | fromYaml | toRawJson | b64enc }}
3132
{{- end }}
3233

0 commit comments

Comments
 (0)