Verified Commit 726854e5 authored by Hugo's avatar Hugo
Browse files

base64 error

parent de9e28c6
......@@ -8,12 +8,12 @@ metadata:
type: Opaque
stringData:
{{- if $pgSecret.data }}
CMD_DB_URL: postgres://{{ $pgSecret.data.username }}:{{ $pgSecret.data.password }}@pg-{{ .Release.Namespace }}:5432/hedgedoc
CMD_DB_URL: postgres://{{ $pgSecret.data.username | b64dec }}:{{ $pgSecret.data.password | b64dec }}@pg-{{ .Release.Namespace }}:5432/hedgedoc
{{ else }}
CMD_DB_URL: postgres://unknown:unknown@pg-{{ .Release.Namespace }}:5432/hedgedoc
{{- end }}
{{- if $secret.data }}
CMD_SESSION_SECRET: {{ $secret.data.CMD_SESSION_SECRET | default (randAlphaNum 64) }}
CMD_SESSION_SECRET: {{ ($secret.data.CMD_SESSION_SECRET | default "" | b64dec) | default (randAlphaNum 64) }}
{{ else }}
CMD_SESSION_SECRET: {{ randAlphaNum 64 }}
{{- end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment