소스 검색

return float

Achilleas Tzenetopoulos 5 년 전
부모
커밋
ddf06163d4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

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

@@ -29,8 +29,8 @@ import (
 )
 
 var (
-	customResourcePriority = &CustomAllocationPriority{"CustomResourceAllocation", customResourceScorer}
-
+	//customResourcePriority = &CustomAllocationPriority{"CustomResourceAllocation", customResourceScorer}
+	customResourcePriority = &CustomAllocationPriority{"CustomAllocationPriority", 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.