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