diff --git a/pkg/kube/client.go b/pkg/kube/client.go index cc38243ac..b996ae615 100644 --- a/pkg/kube/client.go +++ b/pkg/kube/client.go @@ -645,6 +645,9 @@ func (c *Client) WaitAndGetCompletedPodPhase(name string, timeout time.Duration) FieldSelector: fmt.Sprintf("metadata.name=%s", name), TimeoutSeconds: &to, }) + if err != nil { + return v1.PodUnknown, err + } for event := range watcher.ResultChan() { p, ok := event.Object.(*v1.Pod)