helm: fix old reference to static secret_key

This commit is contained in:
Jens Langhammer 2021-01-17 23:01:58 +01:00
parent 1a0aa7e944
commit d5f35798dc
2 changed files with 5 additions and 7 deletions

View file

@ -6,9 +6,9 @@ metadata:
data:
monitoring_username: bW9uaXRvcg== # monitor in base64
{{- if .Values.config.secretKey }}
secret_key: {{ .Values.config.secretKey | b64enc | quote }}
SECRET_KEY: {{ .Values.config.secretKey | b64enc | quote }}
{{- else }}
secret_key: {{ randAlphaNum 50 | b64enc | quote}}
SECRET_KEY: {{ randAlphaNum 50 | b64enc | quote}}
{{- end }}
{{- if .Values.backup }}
POSTGRESQL__S3_BACKUP__SECRET_KEY: "{{ .Values.backup.secretKey }}"

View file

@ -74,12 +74,10 @@ spec:
- configMapRef:
name: {{ include "authentik.fullname" . }}-config
prefix: AUTHENTIK_
- secretRef:
name: {{ include "authentik.fullname" . }}-secret-key
prefix: AUTHENTIK_
env:
- name: AUTHENTIK_SECRET_KEY
valueFrom:
secretKeyRef:
name: "{{ include "authentik.fullname" . }}-secret-key"
key: "secret_key"
- name: AUTHENTIK_REDIS__PASSWORD
valueFrom:
secretKeyRef: