UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit f0250abd authored by joshwolf's avatar joshwolf
Browse files

Merge branch 'ci/all-on-master' into 'master'

ci: ensure all addons are deployed on master

See merge request platform-one/big-bang/bigbang!329
parents f9afd887 d6525f4c
No related branches found
No related tags found
1 merge request!329ci: ensure all addons are deployed on master
Pipeline #190863 passed
......@@ -28,13 +28,18 @@ kubectl apply -f ./scripts/deploy/flux.yaml
# wait for flux
flux check
IFS=","
for package in $CI_MERGE_REQUEST_LABELS; do
if [ "$(yq e ".addons.${package}.enabled" $CI_VALUES_FILE 2>/dev/null)" == "false" ]; then
echo "Identified \"$package\" from labels"
yq e ".addons.${package}.enabled = "true"" $CI_VALUES_FILE > tmpfile && mv tmpfile $CI_VALUES_FILE
fi
done
if [[ "${CI_COMMIT_BRANCH}" == "${CI_DEFAULT_BRANCH}" ]]; then
echo "On default branch, enabling all addons"
yq e ".addons.*.enabled = "true"" $CI_VALUES_FILE > tmpfile && mv tmpfile $CI_VALUES_FILE
else
IFS=","
for package in $CI_MERGE_REQUEST_LABELS; do
if [ "$(yq e ".addons.${package}.enabled" $CI_VALUES_FILE 2>/dev/null)" == "false" ]; then
echo "Identified \"$package\" from labels"
yq e ".addons.${package}.enabled = "true"" $CI_VALUES_FILE > tmpfile && mv tmpfile $CI_VALUES_FILE
fi
done
fi
# deploy BigBang using dev sized scaling
echo "Installing BigBang with the following configurations:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment