scale-catalog/stable/etesync/8.4.0/templates/_secret.tpl

11 lines
316 B
Smarty
Raw Normal View History

2024-07-13 07:59:30 +00:00
{{/* EteSync superuser credentials and Django SECRET_KEY */}}
{{- define "etesync.secret" -}}
enabled: true
data:
{{- with (lookup "v1" "Secret" .Release.Namespace "etesync-secret") }}
secret.txt: {{ index .data "secret.txt" | b64dec }}
{{- else }}
secret.txt: {{ randAlphaNum 32 }}
{{- end }}
{{- end -}}