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) {
|
if IsMirrorPod(pod) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if pod.DeletionTimestamp != nil {
|
||||||
|
// pod is being deleted - no need to move it.
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
daemonsetPod := false
|
daemonsetPod := false
|
||||||
replicated := false
|
replicated := false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue