浏览代码

return float

Achilleas Tzenetopoulos 5 年之前
父节点
当前提交
f9ab3778cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

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

@@ -30,7 +30,7 @@ import (
 
 var (
 	//customResourcePriority = &CustomAllocationPriority{"CustomResourceAllocation", customResourceScorer}
-	customResourcePriority = &CustomAllocationPriority{"CustomAllocationPriority", customResourceScorer}
+	customResourcePriority = &CustomAllocationPriority{"CustomRequestedPriority", customResourceScorer}
 	// 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
 	// prioritizes based on the minimum of the average of the fraction of requested to capacity.