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 →
- Confirm no other pipeline is running for this environment.
helm history shop -n shopand find thepending-upgraderevision and the lastdeployedone.helm rollback shop <last-deployed-rev> -n shop --wait.- If rollback refuses, delete only the pending revision Secret:
kubectl delete secret sh.helm.release.v1.shop.v<pending> -n shop, then redeploy. - Prevent: CI
concurrencygroups, don't cancel deploy jobs mid-way, and keep--timeoutbelow 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.
More on Releases, Upgrades & Rollbacks
A production upgrade starts failing health checks five minutes after the deploy. What do you do?BeginnerWhy would you insist on `--atomic --wait` in CI, and what is the trade-off?IntermediateYou need zero-downtime upgrades of the API with Helm. What must be true in the chart?IntermediateA rollback is requested, but the failed release ran a migration that dropped a column. What do you do?AdvancedThe team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.IntermediateHow do you safely upgrade a third-party chart across a major version (for example ingress-nginx)?Advanced