Skip to content

Commit 1d8ffbf

Browse files
committed
Add missing policy and fix function
1 parent e71b4b1 commit 1d8ffbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/jobs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ spec:
540540
and then delete this st2canary pod manually.
541541
INTRO
542542
543-
function __handle_error__(){
543+
function __handle_error__ {
544544
cat <<- 'FAIL'
545545
ERROR: One or more volumes in st2.packs.volumes (from helm values) does not meet
546546
StackStorm's shared volumes requirements!
@@ -577,6 +577,7 @@ spec:
577577
{{- toYaml $.Values.st2.packs.volumes.configs | nindent 10 }}
578578
{{- end }}
579579
# st2canary job does not support extra_volumes. Let us know if you need this.
580+
restartPolicy: OnFailure
580581
{{- if $.Values.dnsPolicy }}
581582
dnsPolicy: {{ $.Values.dnsPolicy }}
582583
{{- end }}

0 commit comments

Comments
 (0)