Fix pod list retry, reset start timer

pull/5794/head
tstromberg 2019-10-30 14:36:15 -07:00
parent ba8aeaae71
commit 8b24eafbed
1 changed files with 3 additions and 1 deletions

View File

@ -228,7 +228,9 @@ func PodWait(ctx context.Context, t *testing.T, profile string, ns string, selec
pods, err := client.CoreV1().Pods(ns).List(listOpts)
if err != nil {
t.Logf("WARNING: pod list for %q %q returned: %v", ns, selector, err)
return false, err
// Don't return the error upwards so that this is retried, in case the apiserver is rescheduled
podStart = time.Time{}
return false, nil
}
if len(pods.Items) == 0 {
podStart = time.Time{}