Skip to content

Commit

Permalink
✨(jenny) allow to add env from secret
Browse files Browse the repository at this point in the history
This allow from the values to add environment
variable from secret to configure Jenny's app.
  • Loading branch information
claudusd committed Mar 20, 2024
1 parent a85348b commit 2431eb2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jenny/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ service: app
value: "{{ .Values.django.db.host }}"
- name: "DB_PORT"
value: "{{ .Values.django.db.port }}"
{{- range $key, $val := .Values.env.secret }}
- name: {{ $val.envName }}
valueFrom:
secretKeyRef:
name: {{ $val.secretName }}
key: {{ $val.keyName }}
{{- end }}
{{- end }}

{{- define "django.imagePullSecrets" -}}
Expand Down

0 comments on commit 2431eb2

Please sign in to comment.