Interview Prep/Helm/Release Lifecycle, Repositories & OCI

What is `--cleanup-on-fail`?

AdvancedConceptRelease Lifecycle, Repositories & OCI
Answer

On a failed upgrade, it deletes resources that were newly created by that upgrade (for example a new ConfigMap or CronJob added in this chart version). Without it, those orphans stay in the cluster and the next upgrade may fail with "resource already exists" for them. --atomic handles rollback of existing objects; combining both gives the cleanest failure behavior.

All Helm questions Roadmap: Helm

More on Release Lifecycle, Repositories & OCI