Interview Prep/Real-World Interview/Deployments and releases

A Helm upgrade failed halfway and now `helm upgrade` says "another operation is in progress". What do you do?

IntermediateScenarioDeployments and releases
Answer

Situation read → The release is stuck in pending-upgrade, usually because the CI job was killed or timed out mid-upgrade.

What I'd do →

  1. Check the release state:
helm history api -n prod --max 5
helm status api -n prod
  1. Confirm nothing is actually still running (no other pipeline job holding it).
  2. Roll back to the last deployed revision, which clears the pending state:
helm rollback api <last-good-revision> -n prod --wait
  1. Then rerun the upgrade with --atomic --timeout 10m so future failures roll back automatically rather than leaving a stuck release.
  2. Add pipeline concurrency control so two deploys to the same release can never overlap.

Why → Deleting the Helm release secret by hand works but is a last resort; rollback is the supported path.

Interview tip → Mention --atomic; it prevents this exact situation.

All Real-World Interview questions Roadmap: Interview readiness

More on Deployments and releases