From 44d72d17f5e94875fd88773940ab19fe565d6602 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 16 Jan 2023 18:55:40 +0200 Subject: [PATCH] try for compatibility with 3.9.4 helm --- library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl b/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl index 325a3452..418037ce 100644 --- a/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl +++ b/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl @@ -7,8 +7,10 @@ {{- $_ := set $jobValues "nameOverride" $jobName -}} {{- end -}} - {{- if and (hasKey $job "cron") ($job.cron.enabled) -}} - {{- include "ix.v1.common.class.cronJob" (dict "root" $ "job" $jobValues) -}} + {{- if hasKey $job "cron" -}} + {{- if $job.cron.enabled -}} + {{- include "ix.v1.common.class.cronJob" (dict "root" $ "job" $jobValues) -}} + {{- end -}} {{- else -}} {{- include "ix.v1.common.class.job" (dict "root" $ "job" $jobValues) -}} {{- end -}}