Skip to content

Commit c641fde

Browse files
committed
Allow imperative to be nil
Tested by commenting out the whole `imperative` section in values-hub and deploying MCG.
1 parent 4117c1d commit c641fde

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • clustergroup/templates/imperative

clustergroup/templates/imperative/job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if not (eq .Values.enabled "plumbing") }}
22
{{/* Define this if needed (jobs defined */}}
3-
{{- if (gt (len $.Values.clusterGroup.imperative.jobs) 0) -}}
3+
{{- if (and $.Values.clusterGroup.imperative (gt (len $.Values.clusterGroup.imperative.jobs) 0)) -}}
44
---
55
apiVersion: batch/v1
66
kind: CronJob
@@ -66,4 +66,4 @@ spec:
6666
name: {{ $.Values.clusterGroup.imperative.valuesConfigMap }}-{{ $.Values.clusterGroup.name }}
6767
restartPolicy: Never
6868
{{- end }}
69-
{{- end }}
69+
{{- end }}

0 commit comments

Comments
 (0)