Skip to content

Commit e4ec61f

Browse files
committed
Allow skipping extra_hooks jobs
1 parent 8f7fe6b commit e4ec61f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/jobs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ spec:
506506
{{- end }}
507507
{{- range .Values.jobs.extra_hooks -}}
508508
{{- $name := print "extra-helm-hook" (include "stackstorm-ha.hyphenPrefix" (required "You must name each entry in jobs.extra_hooks." .name)) }}
509+
{{- if not ($.Values.jobs.skip | has $name) }}
509510
---
510511
apiVersion: batch/v1
511512
kind: Job
@@ -637,4 +638,5 @@ spec:
637638
tolerations: {{- toYaml . | nindent 8 }}
638639
{{- end }}
639640

641+
{{- end }}
640642
{{- end }}

0 commit comments

Comments
 (0)