From 9551ea67d9c44dc9f4ff53ddb089051935afdb4c Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 9 Jul 2026 18:18:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(helm)=20fix=20nil=20pointer=20erro?= =?UTF-8?q?r=20with=20envFrom=20in=20the=20backened=5Fconjob=5Flist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the backend_cronjob_list.yaml template the usage `.Values` instead of `$.Values` was causing a nil pointer error --- src/helm/impress/templates/backend_cronjob_list.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helm/impress/templates/backend_cronjob_list.yaml b/src/helm/impress/templates/backend_cronjob_list.yaml index df2d5ab1e..10708c059 100644 --- a/src/helm/impress/templates/backend_cronjob_list.yaml +++ b/src/helm/impress/templates/backend_cronjob_list.yaml @@ -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: