Interview Prep/Helm/Releases, Upgrades & Rollbacks

A pipeline was cancelled mid-upgrade and now every deploy fails with "another operation is in progress". What do you do?

AdvancedScenarioReleases, Upgrades & Rollbacks
Answer

Situation read → The Helm process died while the release was in pending-upgrade; the lock never cleared.

What I'd do →

  1. Confirm no other pipeline is running for this environment.
  2. helm history shop -n shop and find the pending-upgrade revision and the last deployed one.
  3. helm rollback shop <last-deployed-rev> -n shop --wait.
  4. If rollback refuses, delete only the pending revision Secret: kubectl delete secret sh.helm.release.v1.shop.v<pending> -n shop, then redeploy.
  5. Prevent: CI concurrency groups, don't cancel deploy jobs mid-way, and keep --timeout below the CI job timeout.

Why → Helm's status field acts as a lock; clearing it safely means returning to a known revision.

Interview tip → Mention the CI timeout vs Helm timeout ordering as root cause prevention.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks