helm-pending-operation (Pro)

helm 3:

Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress

helm 4:

Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress

helm 3 and helm 4 print the same line. dojo-deploy reports it in the install or upgrade phase of a Kubernetes install, with Hint: helm-pending-operation.

Cause

An earlier helm run on the release was stopped before it ended and left the release pending, or another helm run is working on it now.

Confirm

Make sure nothing else runs helm on the release: another terminal, a CI job, or a GitOps controller. Then list the release’s revisions:

helm history <release> -n <namespace>
helm list -n <namespace> --pending

The last revision’s status is pending-install, pending-upgrade or pending-rollback.

Recover

Roll back to the last revision whose status is deployed:

helm rollback <release> <revision> -n <namespace>

When the only revision is pending-install (the first install never finished), there is nothing to roll back to. Remove the release instead:

helm uninstall <release> -n <namespace>

Then run the command on the To resume: line.