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:
Marcin Wielgus 2017-09-11 15:10:08 +05:30 committed by GitHub
commit db63ac3a18
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}