A `pre-delete` hook fails and now `helm uninstall` is stuck. What do you do?
IntermediateScenarioHooks, Migrations & Testing
Answer
Situation read → Uninstall waits for the hook and fails, leaving the release in place (or in uninstalling).
What I'd do →
- Inspect the hook Job logs to decide whether the cleanup matters.
- If not,
helm uninstall shop -n shop --no-hooks. - Fix the hook (permissions, timeouts) and make it tolerate already-deleted dependencies.
Why → --no-hooks skips hooks for exactly this case.
Interview tip → Mention that hook failures block lifecycle operations by design.
More on Hooks, Migrations & Testing
Design database migrations for a Helm-deployed app where the database is a subchart.IntermediateThe migration Job takes 12 minutes on prod data and the upgrade times out. What do you change?IntermediateA migration hook failed and the Job pod was deleted, so you cannot see why. How do you fix the chart?BeginnerYou want a backup before every production upgrade. How do you do it with Helm?IntermediateA `post-install` hook seeds demo data; it ran again on every upgrade and duplicated rows. Why?IntermediateHow do you clean up external resources (DNS records, S3 buckets) when a release is uninstalled?Advanced