try for compatibility with 3.9.4 helm

This commit is contained in:
Stavros kois
2023-01-16 18:55:40 +02:00
parent a4a8d06010
commit 44d72d17f5

View File

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