feat: Ability to provide extra env variables in Helm (#961)

Closes #960
This commit is contained in:
JoeKer1
2024-11-27 11:39:58 +01:00
committed by GitHub
parent 47c0ff9f69
commit 95a50d059a
3 changed files with 29 additions and 2 deletions
+14
View File
@@ -67,6 +67,20 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
{{- if .Values.extraEnv }}
{{- range .Values.extraEnv }}
- name: {{ .name }}
{{- if .value }}
value: {{ .value | quote}}
{{- end }}
{{- if .valueFrom }}
valueFrom:
secretKeyRef:
name: {{ .valueFrom.secretName }}
key: {{ .valueFrom.key }}
{{- end }}
{{- end }}
{{- end }}
{{- if not .Values.postgresql.enabled }}
{{- if .Values.existingDburlSecret }}
- name: DATABASE_URL