Skip to content

Commit

Permalink
Pass --wait flag to helm uninstall commands
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Cheamitru <[email protected]>
Signed-off-by: Alex Cheamitru <[email protected]>
  • Loading branch information
Alex Cheamitru authored and brandond committed Jul 17, 2023
1 parent 645bb1e commit 71677e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entry
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ helm_update() {
fi
if [[ "${HELM}" == "helm_v3" ]]; then
echo "Uninstalling ${HELM} chart" >> ${TERM_LOG}
${HELM} uninstall ${NAME} --namespace ${TARGET_NAMESPACE} || true
${HELM} uninstall ${NAME} --namespace ${TARGET_NAMESPACE} --wait || true
else
echo "Deleting and purging ${HELM} chart" >> ${TERM_LOG}
${HELM} delete ${NAME} || true
Expand Down Expand Up @@ -77,7 +77,7 @@ helm_update() {
if [[ "${FAILURE_POLICY:-reinstall}" == "reinstall" ]]; then
if [[ "${HELM}" == "helm_v3" ]]; then
echo "Uninstalling ${STATUS} ${HELM} chart" >> ${TERM_LOG}
${HELM} uninstall ${NAME} --namespace ${TARGET_NAMESPACE}
${HELM} uninstall ${NAME} --namespace ${TARGET_NAMESPACE} --wait
else
echo "Purging ${STATUS} ${HELM} chart" >> ${TERM_LOG}
${HELM} "$@" --purge ${NAME}
Expand Down

0 comments on commit 71677e0

Please sign in to comment.