mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 09:33:52 +00:00
The Pod is eligible to preempt when previous nominanted node is UnschedulableAndUnresolvable
If the Pod's previous nominated node is UnschedulableAndUnresolvable from previous filtering, it should be considered for preemption again.
This commit is contained in:
@@ -244,6 +244,12 @@ func (p *PodWrapper) StartTime(t metav1.Time) *PodWrapper {
|
||||
return p
|
||||
}
|
||||
|
||||
// NominatedNodeName sets `n` as the .Status.NominatedNodeName of the inner pod.
|
||||
func (p *PodWrapper) NominatedNodeName(n string) *PodWrapper {
|
||||
p.Status.NominatedNodeName = n
|
||||
return p
|
||||
}
|
||||
|
||||
// PodAffinityKind represents different kinds of PodAffinity.
|
||||
type PodAffinityKind int
|
||||
|
||||
|
Reference in New Issue
Block a user