Skip to content

Commit

Permalink
fix: Allow kratos to preload secret (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere committed Nov 22, 2021
1 parent 12df183 commit 3e1e9a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions helm/charts/kratos/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,27 +121,23 @@ spec:
secretKeyRef:
name: {{ include "kratos.secretname" . }}
key: dsn
{{- if .Values.kratos.config.secrets.default }}
- name: SECRETS_DEFAULT
valueFrom:
secretKeyRef:
name: {{ include "kratos.secretname" . }}
key: secretsDefault
{{- end}}
{{- if .Values.kratos.config.secrets.cookie }}
optional: true
- name: SECRETS_COOKIE
valueFrom:
secretKeyRef:
name: {{ include "kratos.secretname" . }}
key: secretsCookie
{{- end}}
{{- if .Values.kratos.config.courier.smtp.connection_uri }}
optional: true
- name: COURIER_SMTP_CONNECTION_URI
valueFrom:
secretKeyRef:
name: {{ include "kratos.secretname" . }}
key: smtpConnectionURI
{{- end}}
{{- if .Values.kratos.dev_disable_api_flow_enforcement }}
- name: DEV_DISABLE_API_FLOW_ENFORCEMENT
value: "true"
Expand Down

0 comments on commit 3e1e9a8

Please sign in to comment.