Browse Source

return float

Achilleas Tzenetopoulos 5 years ago
parent
commit
f9ab3778cb

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -30,7 +30,7 @@ import (
 
 
 var (
 var (
 	//customResourcePriority = &CustomAllocationPriority{"CustomResourceAllocation", customResourceScorer}
 	//customResourcePriority = &CustomAllocationPriority{"CustomResourceAllocation", customResourceScorer}
-	customResourcePriority = &CustomAllocationPriority{"CustomAllocationPriority", customResourceScorer}
+	customResourcePriority = &CustomAllocationPriority{"CustomRequestedPriority", customResourceScorer}
 	// LeastRequestedPriorityMap is a priority function that favors nodes with fewer requested resources.
 	// LeastRequestedPriorityMap is a priority function that favors nodes with fewer requested resources.
 	// It calculates the percentage of memory and CPU requested by pods scheduled on the node, and
 	// It calculates the percentage of memory and CPU requested by pods scheduled on the node, and
 	// prioritizes based on the minimum of the average of the fraction of requested to capacity.
 	// prioritizes based on the minimum of the average of the fraction of requested to capacity.