Interview Prep/Helm/Hooks, Migrations & Testing

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 →

  1. Inspect the hook Job logs to decide whether the cleanup matters.
  2. If not, helm uninstall shop -n shop --no-hooks.
  3. 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.

All Helm questions Roadmap: Helm

More on Hooks, Migrations & Testing