Skip to content

Commit

Permalink
feat: pass secrets to container env
Browse files Browse the repository at this point in the history
  • Loading branch information
x-mass committed Feb 9, 2025
1 parent 137a258 commit 8364f04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ spec:
{{- if .Values.deployment.env }}
env:
{{- toYaml .Values.deployment.env | nindent 12 }}
{{- end }}
envFrom:
{{- if .Values.secrets.data }}
- secretRef:
name: {{ include "mychart.fullname" . }}-secrets
{{- end }}
envFrom:
{{- if .Values.secrets.data }}
- secretRef:
Expand Down

0 comments on commit 8364f04

Please sign in to comment.