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 296adb9 commit e1f3b78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ spec:
{{- if .Values.deployment.env }}
env:
{{- toYaml .Values.deployment.env | nindent 12 }}
envFrom:
{{- if .Values.secrets.data }}
- secretRef:
name: {{ include "mychart.fullname" . }}-secrets
{{- end }}
{{- end }}
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
Expand Down

0 comments on commit e1f3b78

Please sign in to comment.