Helm rollback to previous release

onkeliroh picture onkeliroh · Aug 17, 2018 · Viewed 24.6k times · Source

I am looking for a way to rollback a helm release to its previous release without specifying the target release version as a number.

Something like helm rollback <RELEASE> ~1 (like git reset HEAD~1) would be nice.

Answer

onkeliroh picture onkeliroh · Aug 17, 2018

As it turns out, there is an undocumented option to rollback to the last successful release by defining the target release version as 0. like: helm rollback <RELEASE> 0

Source: https://github.com/helm/helm/issues/1796