(helm) allow all keys in configMap as env var in backend jobs

Add `envFrom` support to backend jobs and cronjobs
(`backend_job.yml`, `backend_job_createsuperuser.yaml`,
`backend_job_migrate.yaml`, `backend_cronjob_list.yaml`),
mirroring the `envFrom` support already added to the deployments.

This allows injecting all keys from a ConfigMap or Secret as
environment variables via `backend.envFrom` in the Helm values.

Signed-off-by: Johannes Kastl <[email protected]>
This commit is contained in:
Johannes Kastl
2026-03-06 12:31:54 +01:00
committed by Anthony LC
parent b4591cda10
commit f294a8e5a3
5 changed files with 20 additions and 0 deletions
+4
View File
@@ -6,6 +6,10 @@ and this project adheres to
## [Unreleased]
### Added
- ✨(helm) allow all keys in configMap as env var #1872
### Changed
- 📝(docs) improve README and add documentation hub #1870
@@ -42,6 +42,10 @@ items:
env:
{{- $envVars | indent 22 }}
{{- end }}
{{- if .Values.backend.envFrom }}
envFrom:
{{- toYaml .Values.backend.envFrom | nindent 22 }}
{{- end }}
{{- with $.Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 22 }}
@@ -48,6 +48,10 @@ spec:
env:
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.envFrom }}
envFrom:
{{- toYaml .Values.backend.envFrom | nindent 12 }}
{{- end }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
@@ -52,6 +52,10 @@ spec:
env:
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.envFrom }}
envFrom:
{{- toYaml .Values.backend.envFrom | nindent 12 }}
{{- end }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
@@ -52,6 +52,10 @@ spec:
env:
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.envFrom }}
envFrom:
{{- toYaml .Values.backend.envFrom | nindent 12 }}
{{- end }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}