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.
Using Helm
helm rollback release-name 0
Using kubectl
What does rollout/rollback in kubectl means? Rolling updates allow the following actions:
kubectl rollout undo deployment/deployment-name
or
kubectl rollout undo deployment/deployment-name --to-revision=0
Unlike the previous old answers above.
According to the latest documentation, you can rollback to the previous version by simply omitting the argument in helm rollback. Which means your command should like below to rollback to the previous version.
helm rollback <RELEASE_NAME>