Interview Prep/Helm/Release Lifecycle, Repositories & OCI

How does `helm rollback` work?

BeginnerConceptRelease Lifecycle, Repositories & OCI
Answer

It takes the manifest and values stored in a previous revision and applies them as a new revision. History is never rewritten.

helm history shop -n shop
# REVISION  STATUS      CHART       APP VERSION  DESCRIPTION
# 4         superseded  shop-1.3.0  2.2.0        Upgrade complete
# 5         deployed    shop-1.4.0  2.3.0        Upgrade complete
helm rollback shop 4 -n shop --wait --timeout 5m
# revision 6 created, content of revision 4

helm rollback shop with no revision goes to the previous one.

All Helm questions Roadmap: Helm

More on Release Lifecycle, Repositories & OCI