Skip to content

Commit 93e3f26

Browse files
authored
fix script in job-st2canary-for-writable-packs-volume (#411)
Fixes #388
1 parent ef1ed63 commit 93e3f26

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
## Development
4-
* Fix syntax with ensure-packs-volumes-are-writable job (#403) (by @skiedude)
4+
* Fix syntax with ensure-packs-volumes-are-writable job (#403, #411) (by @skiedude)
55
* Add securityContext support to custom st2packs images, extra_hooks jobs; Also fallback to st2actionrunner securityContext for misc init container jobs and pods. (#410) (by @cognifloyd)
66
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)
77
* Stop generating the checksum labels for Auth Secret (#392) when existing secret provided or disabled (by @bmarick)

templates/jobs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ spec:
532532
# readOnly: false
533533
# ephemeral volumes could also work, ... but that config is even deeper.
534534
command:
535-
- 'sh'
535+
- 'bash'
536536
# -e => exit on failure
537537
# -E => trap ERR is inherited in subfunctions
538538
- '-eEc'
@@ -545,7 +545,7 @@ spec:
545545
INTRO
546546
547547
function __handle_error__ {
548-
cat <<- 'FAIL'
548+
cat <<- ' FAIL'
549549
ERROR: One or more volumes in st2.packs.volumes (from helm values) does not meet
550550
StackStorm's shared volumes requirements!
551551
see: https://github.com/StackStorm/stackstorm-k8s#method-2-shared-volumes
@@ -565,6 +565,7 @@ spec:
565565
echo
566566
done
567567
echo DONE
568+
568569
volumeMounts:
569570
{{- include "stackstorm-ha.packs-volume-mounts" $ | nindent 8 }}
570571
{{/* do not include the pack-configs-volume-mount helper here */}}

0 commit comments

Comments
 (0)