CLI: wait for the deployment to finish before giving back control
Problem
The deploy
and update
scripts exit after the helm update -i
exit but the deployment is still in progress in the backgroud.
Proposal
Wait for the deployment to finish, as example:
kubectl -n ${NAMESPACE} rollout status deployment --watch=true --timeout=5m