UPSTREAM: 47270: kubectl drain errors if pod is already deleted
@@ -544,7 +544,7 @@ func (o *DrainOptions) deletePods(pods []api.Pod, getPodFn func(namespace, name
}
for _, pod := range pods {
err := o.deletePod(pod)
- if err != nil {
+ if err != nil && !apierrors.IsNotFound(err) {
return err
}
}
