(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 <git@johannes-kastl.de>
This commit is contained in:
Johannes Kastl 2026-02-07 17:18:34 +01:00 committed by Anthony LC
parent b4591cda10
commit f294a8e5a3
No known key found for this signature in database
5 changed files with 20 additions and 0 deletions

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

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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 }}