Moving and refactoring restore_or_init.sh script out of being embedded in a ConfigMap template to a separate directory to allow easier code maintenance. Before script could be moved, following changes had to be applied (as seen in PR):
PGBACKREST_REPO1_PATH env variable had to be moved to STS
TSTUNE_FILE env variable had to be created in STS to remove usage of static helm template variable in script
pgbackrest_bootstrap_environment_dir helm helper variable had to be removed
This PR is also moving towards shellchecking scripts BEFORE they are mangled by helm template. This should allow easier development and improve code readability.
What this PR does / why we need it
Moving and refactoring restore_or_init.sh script out of being embedded in a ConfigMap template to a separate directory to allow easier code maintenance. Before script could be moved, following changes had to be applied (as seen in PR):
pgbackrest_bootstrap_environment_dir
helm helper variable had to be removedThis PR is also moving towards shellchecking scripts BEFORE they are mangled by
helm template
. This should allow easier development and improve code readability.This the last PR of an effort listed in https://github.com/timescale/helm-charts/pull/505
PR is blocked by https://github.com/timescale/helm-charts/pull/515, https://github.com/timescale/helm-charts/pull/516, https://github.com/timescale/helm-charts/pull/517, https://github.com/timescale/helm-charts/pull/518, https://github.com/timescale/helm-charts/pull/519, and #520
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer
Checklist