Cluster-autoscaler: skip pods that are being deleted in node drain
This commit is contained in:
parent
4d9770939d
commit
e3395fdae7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue