mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Ignore 404s on evict
This commit is contained in:
parent
85832892b1
commit
26d3eadb46
@ -496,7 +496,7 @@ func (o *DrainOptions) evictPods(pods []api.Pod, policyGroupVersion string, getP
|
|||||||
break
|
break
|
||||||
} else if apierrors.IsTooManyRequests(err) {
|
} else if apierrors.IsTooManyRequests(err) {
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
} else {
|
} else if !apierrors.IsNotFound(err) {
|
||||||
errCh <- fmt.Errorf("error when evicting pod %q: %v", pod.Name, err)
|
errCh <- fmt.Errorf("error when evicting pod %q: %v", pod.Name, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user