move HYDRA_CLIENT_SECRET and KRATOS_URL out of IF

This commit is contained in:
Maarten de Waard 2022-01-21 15:13:02 +01:00
parent c2abc6802e
commit 30393e2da4
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA

View file

@ -132,12 +132,6 @@ spec:
secretKeyRef:
name: {{ include "backend.secretName" . }}
key: backend-password
{{- if (include "backend.smtp.password.enabled" .) }}
- name: DASHBOARD_SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "backend.smtp.secretName" . }}
key: smtp-password
- name: HYDRA_CLIENT_SECRET
valueFrom:
secretKeyRef:
@ -145,6 +139,12 @@ spec:
key: oidc-client-secret
- name: KRATOS_URL
value: {{ .Values.backend.kratosUrl }}
{{- if (include "backend.smtp.password.enabled" .) }}
- name: DASHBOARD_SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "backend.smtp.secretName" . }}
key: smtp-password
{{- end }}
{{- if .Values.backend.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.backend.extraEnvVars "context" $) | nindent 12 }}