Cluster-autoscaler: skip pods that are being deleted in node drain

This commit is contained in:
Marcin Wielgus 2017-02-22 14:09:39 +01:00
parent 4d9770939d
commit e3395fdae7
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ func GetPodsForDeletionOnNodeDrain(
if IsMirrorPod(pod) {
continue
}
if pod.DeletionTimestamp != nil {
// pod is being deleted - no need to move it.
continue
}
daemonsetPod := false
replicated := false