🐛(helm) fix nil pointer error with envFrom in the backened_conjob_list

In the backend_cronjob_list.yaml template the usage `.Values` instead of
`$.Values` was causing a nil pointer error
This commit is contained in:
Manuel Raynaud
2026-07-09 18:22:19 +02:00
parent 5a705b045b
commit 9551ea67d9
@@ -14,7 +14,7 @@ items:
labels:
{{- include "impress.common.labels" (list $ $component) | nindent 8 }}
spec:
schedule: {{ .schedule }}
schedule: {{ .schedule | quote }}
concurrencyPolicy: {{ .concurrencyPolicy | default "Forbid" }}
successfulJobsHistoryLimit: {{ .successfulJobsHistoryLimit | default 3 }}
failedJobsHistoryLimit: {{ .failedJobsHistoryLimit | default 1 }}
@@ -42,9 +42,9 @@ items:
env:
{{- $envVars | indent 22 }}
{{- end }}
{{- if .Values.backend.envFrom }}
{{- if $.Values.backend.envFrom }}
envFrom:
{{- toYaml .Values.backend.envFrom | nindent 22 }}
{{- toYaml $.Values.backend.envFrom | nindent 22 }}
{{- end }}
{{- with $.Values.backend.securityContext }}
securityContext: