File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1070,7 +1070,6 @@ func selectVictimsOnNode(
1070
1070
removePod (p )
1071
1071
}
1072
1072
}
1073
- potentialVictims .Sort ()
1074
1073
// If the new pod does not fit after removing all the lower priority pods,
1075
1074
// we are almost done and this node is not suitable for preemption. The only
1076
1075
// condition that we could check is if the "pod" is failing to schedule due to
@@ -1085,6 +1084,7 @@ func selectVictimsOnNode(
1085
1084
}
1086
1085
var victims []* v1.Pod
1087
1086
numViolatingVictim := 0
1087
+ potentialVictims .Sort ()
1088
1088
// Try to reprieve as many pods as possible. We first try to reprieve the PDB
1089
1089
// violating victims and then other non-violating ones. In both cases, we start
1090
1090
// from the highest priority victims.
You can’t perform that action at this time.
0 commit comments