Auto DevOps: Redeploying deleted app gives helm error
PROBLEM
For the review app delete
step, the autodevops template is calling:
helm delete "$name"
This leaves a ConfigMap around on the Kubernetes cluster after that review app instance is torn down and also makes it so you can't re-deploy the same branch again without a helm error:
Error: UPGRADE FAILED: "review-nginx-h7jpet" has no deployed releases
POTENTIAL SOLUTION
Use
helm delete --purge "$name"
instead when shutting down review apps.
Edited by David Archer