Interview Prep/Helm/Hooks, Tests & Validation

How does Helm decide a hook is "done"?

AdvancedConceptHooks, Tests & Validation
Answer

For Jobs, Helm waits until the Job completes successfully; a Job that reaches backoffLimit fails the hook and the release operation. For Pods, it waits for Succeeded. For all other kinds (ConfigMap, Secret, ServiceAccount), the hook is considered ready as soon as the API server accepts the object. The wait is bounded by --timeout (default 5m), which covers hooks too, so a slow migration needs a larger --timeout.

All Helm questions Roadmap: Helm

More on Hooks, Tests & Validation