-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASTRACTL-32772: bug fixes #362
Conversation
…erator into ASTRACTL-32772-bug-fixes
add_problem "$ns_warning" | ||
else | ||
prompt_user "NAMESPACE" "$ns_warning. Please enter the namespace:" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With prompts disabled, we were letting the user proceed without a NAMESPACE which would cause a fatal error down the road since we were trying to do operations involving an IMAGE_PULL_SECRET and relied on NAMESPACE also being set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
elif [ -z "$output" ] || [ -n "$line" ]; then | ||
add_problem "Failed to apply kustomize resources: $line" | ||
fi | ||
done < <(echo "$captured_err") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the apply
command has both a set of warnings and errors, the warning would basically "hide" the actual errors since we were checking the whole string at once instead of line by line. We'd then continue with the rest of the script even though the apply failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another good catch
Minimum allowed line rate is |
* first steps * kubectl -k command works now * remove white space * feedback * stuff * Update unified-installer/astra-unified-installer.sh Co-authored-by: Alice Paquette <[email protected]> * Update unified-installer/astra-unified-installer.sh Co-authored-by: Alice Paquette <[email protected]> * dont remove thing we need * generate_docker_registry_secret function * get_trident_namespace * labels * ASTRACTL-32772: bug fixes (#362) * ASTRACTL-32772: fix namespace/pull secret bug when prompts disabled * ASTRACTL-32772: fix kubectl apply not detecting errors if output after a warning * ASTRACTL-32772: cleanup * error handling for trident-acp secret applying * labels! --------- Co-authored-by: Alice Paquette <[email protected]>
Two fixes for random bugs I found while testing some unrelated changes.