We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4117c1d + c641fde commit ffb38ddCopy full SHA for ffb38dd
1 file changed
clustergroup/templates/imperative/job.yaml
@@ -1,6 +1,6 @@
1
{{- if not (eq .Values.enabled "plumbing") }}
2
{{/* Define this if needed (jobs defined */}}
3
-{{- if (gt (len $.Values.clusterGroup.imperative.jobs) 0) -}}
+{{- if (and $.Values.clusterGroup.imperative (gt (len $.Values.clusterGroup.imperative.jobs) 0)) -}}
4
---
5
apiVersion: batch/v1
6
kind: CronJob
@@ -66,4 +66,4 @@ spec:
66
name: {{ $.Values.clusterGroup.imperative.valuesConfigMap }}-{{ $.Values.clusterGroup.name }}
67
restartPolicy: Never
68
{{- end }}
69
-{{- end }}
+{{- end }}
0 commit comments