mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Move GetPodPriority from /scheduler/util to /api/pod
This commit is contained in:
@@ -157,8 +157,8 @@ type fakeFramework struct{}
|
||||
|
||||
func (*fakeFramework) QueueSortFunc() framework.LessFunc {
|
||||
return func(podInfo1, podInfo2 *framework.PodInfo) bool {
|
||||
prio1 := util.GetPodPriority(podInfo1.Pod)
|
||||
prio2 := util.GetPodPriority(podInfo2.Pod)
|
||||
prio1 := podutil.GetPodPriority(podInfo1.Pod)
|
||||
prio2 := podutil.GetPodPriority(podInfo2.Pod)
|
||||
return prio1 < prio2
|
||||
}
|
||||
}
|
||||
@@ -855,7 +855,7 @@ func TestPodFailedSchedulingMultipleTimesDoesNotBlockNewerPod(t *testing.T) {
|
||||
|
||||
// Add an unschedulable pod to a priority queue.
|
||||
// This makes a situation that the pod was tried to schedule
|
||||
// and had been determined unschedulable so far.
|
||||
// and had been determined unschedulable so far
|
||||
unschedulablePod := v1.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: "test-pod-unscheduled",
|
||||
|
||||
Reference in New Issue
Block a user