Update pkg/kube/statuswait.go

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
pull/31706/head
Evans Mungai 4 days ago committed by GitHub
parent 59ece92bed
commit f46f1ce55d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,7 +105,8 @@ func (w *statusWaiter) WaitWithJobs(resourceList ResourceList, timeout time.Dura
slog.Debug("waiting for resources", "count", len(resourceList), "timeout", timeout)
sw := watcher.NewDefaultStatusWatcher(w.client, w.restMapper)
newCustomJobStatusReader := helmStatusReaders.NewCustomJobStatusReader(w.restMapper)
readers := append(w.readers, newCustomJobStatusReader)
readers := append([]engine.StatusReader(nil), w.readers...)
readers = append(readers, newCustomJobStatusReader)
customSR := statusreaders.NewStatusReader(w.restMapper, readers...)
sw.StatusReader = customSR
return w.wait(ctx, resourceList, sw)

Loading…
Cancel
Save