Interview Prep/Helm/Release Lifecycle, Repositories & OCI

What does `--atomic` do?

BeginnerConceptRelease Lifecycle, Repositories & OCI
Answer

It makes the operation all-or-nothing. On a failed install, Helm uninstalls the release; on a failed upgrade, it rolls back to the last successful revision. It implies --wait. The error then reads:

Error: UPGRADE FAILED: release shop failed, and has been rolled back due to atomic being set: context deadline exceeded

In Helm 4 the flag is called --rollback-on-failure.

All Helm questions Roadmap: Helm

More on Release Lifecycle, Repositories & OCI