1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 21:31:18 +01:00

sortNodesByUsage: drop extended resources as they are already counted in

This commit is contained in:
Jan Chaloupka
2024-11-13 21:31:02 +01:00
parent da52983b27
commit 67d3d52de8

View File

@@ -385,14 +385,6 @@ func sortNodesByUsage(nodes []NodeInfo, ascending bool) {
}
}
// extended resources
for name := range nodes[i].usage {
if !nodeutil.IsBasicResource(name) {
ti = ti + nodes[i].usage[name].Value()
tj = tj + nodes[j].usage[name].Value()
}
}
// Return ascending order for HighNodeUtilization plugin
if ascending {
return ti < tj