Switch to filter syntax for djangoSecret default

This commit is contained in:
Florian Piesche 2021-03-22 23:52:05 +00:00
parent f3c1b188ac
commit ef73f55781
No known key found for this signature in database
GPG key ID: CF7283FB896221F3

View file

@ -15,7 +15,7 @@ data:
{{ if $secret -}} {{ if $secret -}}
DJANGO_SECRET_KEY: {{ $secret.data.DJANGO_SECRET_KEY }} DJANGO_SECRET_KEY: {{ $secret.data.DJANGO_SECRET_KEY }}
{{ else -}} {{ else -}}
DJANGO_SECRET_KEY: {{ (default uuidv4 .Values.djangoSecret) | b64enc }} DJANGO_SECRET_KEY: {{ (.Values.djangoSecret | default uuidv4) | b64enc }}
{{ end }} {{ end }}
{{- range $key, $val := .Values.extraSecret }} {{- range $key, $val := .Values.extraSecret }}