sched: retry unschedule pods immediately after a waiting pod's deletion

This commit is contained in:
Wei Huang
2021-07-19 15:46:55 -07:00
parent ebc87c39d3
commit dc079acc2b
8 changed files with 312 additions and 101 deletions

View File

@@ -498,10 +498,7 @@ func podScheduled(c clientset.Interface, podNamespace, podName string) wait.Cond
// This could be a connection error so we want to retry.
return false, nil
}
if pod.Spec.NodeName == "" {
return false, nil
}
return true, nil
return pod.Spec.NodeName != "", nil
}
}