mirror of https://github.com/helm/helm
When a pre/post hook Job fails (e.g. BackoffLimitExceeded), the status observer was skipping the FailedStatus resource instead of cancelling the watch. This caused WatchUntilReady to block until the full --timeout value expired, then return both the hook failure AND context deadline exceeded. Helm v3 failed immediately via ready.go jobReady() which checked job.Status.Failed > BackoffLimit. The v4 status-watcher framework reintroduced this regression because statusObserver continued waiting after detecting failure. Fix: call cancel() as soon as FailedStatus is observed so the watch stops immediately, returning only the hook failure error. Fixes #31690pull/32154/head
parent
ff2b139502
commit
1e4eccbd30
Loading…
Reference in new issue