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.
More on Release Lifecycle, Repositories & OCI
Why is `helm upgrade --install` the standard CI command?BeginnerWhat does `--wait` actually wait for?IntermediateWhat does `--atomic` do?BeginnerHow does `helm rollback` work?BeginnerWhat does a Helm rollback NOT undo?AdvancedExplain release statuses you might see in `helm list -a` or `helm history`.Intermediate