mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
sortNodesByUsage: drop extended resources as they are already counted in
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user