Changes hook waiting to use kstatus rather than pod or job specific watcher

pull/32710/head
Philip Laine 22 hours ago
parent 53dfa521e0
commit 9a938f2be2
No known key found for this signature in database
GPG Key ID: F6D0B743CA3EFF33

@ -117,7 +117,7 @@ func (cfg *Configuration) execHookWithDelayedShutdown(rl *release.Release, hook
return shutdownNoOp, fmt.Errorf("unable to get waiter: %w", err) return shutdownNoOp, fmt.Errorf("unable to get waiter: %w", err)
} }
// Watch hook resources until they have completed // Watch hook resources until they have completed
err = waiter.WatchUntilReady(resources, timeout) err = waiter.Wait(resources, timeout)
// Note the time of success/failure // Note the time of success/failure
h.LastRun.CompletedAt = time.Now() h.LastRun.CompletedAt = time.Now()
// Mark hook as succeeded or failed // Mark hook as succeeded or failed

Loading…
Cancel
Save