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.
More on Hooks, Tests & Validation
What are Helm hooks?BeginnerList all hook types and when they run.BeginnerHow do hook weights work?IntermediateWhat are the hook delete policies?IntermediateAre hook resources part of the release? What happens on uninstall?IntermediateWhy is running a migration as a `pre-install` hook often a mistake?Advanced