Merge pull request #324 from aleksandra-malinowska/scale-down-pod-not-found
Add checking for pod not found error on eviction
This commit is contained in:
commit
db63ac3a18
|
|
@ -592,7 +592,7 @@ func evictPod(podToEvict *apiv1.Pod, client kube_client.Interface, recorder kube
|
|||
},
|
||||
}
|
||||
lastError = client.CoreV1().Pods(podToEvict.Namespace).Evict(eviction)
|
||||
if lastError == nil {
|
||||
if lastError == nil || kube_errors.IsNotFound(lastError) {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue