Skip to content

Commit

Permalink
fix script in job-st2canary-for-writable-packs-volume (#411)
Browse files Browse the repository at this point in the history
Fixes #388
  • Loading branch information
cognifloyd authored Apr 12, 2024
1 parent ef1ed63 commit 93e3f26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog

## Development
* Fix syntax with ensure-packs-volumes-are-writable job (#403) (by @skiedude)
* Fix syntax with ensure-packs-volumes-are-writable job (#403, #411) (by @skiedude)
* 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)
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)
* Stop generating the checksum labels for Auth Secret (#392) when existing secret provided or disabled (by @bmarick)
Expand Down
5 changes: 3 additions & 2 deletions templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ spec:
# readOnly: false
# ephemeral volumes could also work, ... but that config is even deeper.
command:
- 'sh'
- 'bash'
# -e => exit on failure
# -E => trap ERR is inherited in subfunctions
- '-eEc'
Expand All @@ -545,7 +545,7 @@ spec:
INTRO
function __handle_error__ {
cat <<- 'FAIL'
cat <<- ' FAIL'
ERROR: One or more volumes in st2.packs.volumes (from helm values) does not meet
StackStorm's shared volumes requirements!
see: https://github.com/StackStorm/stackstorm-k8s#method-2-shared-volumes
Expand All @@ -565,6 +565,7 @@ spec:
echo
done
echo DONE
volumeMounts:
{{- include "stackstorm-ha.packs-volume-mounts" $ | nindent 8 }}
{{/* do not include the pack-configs-volume-mount helper here */}}
Expand Down

0 comments on commit 93e3f26

Please sign in to comment.