UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit d5fcbb8d authored by Brendon Lloyd's avatar Brendon Lloyd Committed by Micah Nagel
Browse files

Resolve "wait_crd in BB CI doesn't exit on failure"

parent 5b33fb3b
No related branches found
No related tags found
2 merge requests!1386Master,!1026Resolve "wait_crd in BB CI doesn't exit on failure"
......@@ -135,12 +135,11 @@ function wait_daemonset(){
# Check for and run the wait_project function within <repo>/tests/wait.sh to wait for custom resources
function wait_crd(){
set +e
yq e '. | keys | .[] | ... comments=""' "${VALUES_FILE}" | while IFS= read -r package; do
if [[ "$(yq e ".${package}.enabled" "${VALUES_FILE}")" == "true" ]]; then
gitrepo=$(yq e ".${package}.git.repo" "${VALUES_FILE}")
version=$(yq e ".${package}.git.tag" "${VALUES_FILE}")
if [[ -z "$version" ]]; then
if [[ -z "$version" || "$version" == "null" ]]; then
version=$(yq e ".${package}.git.branch" "${VALUES_FILE}")
fi
if [[ -z "$version" || "$version" == "null" ]]; then
......@@ -156,7 +155,6 @@ function wait_crd(){
fi
fi
done
set -e
}
......
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