From e8f719194b54fbef54803baa8acf967b3fad9125 Mon Sep 17 00:00:00 2001 From: limengxuan Date: Tue, 18 Jul 2023 16:46:09 +0800 Subject: [PATCH] Signed-off-by: limengxuan <391013634@qq.com> fix format --- pkg/scheduler/api/shared_device_pool.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/scheduler/api/shared_device_pool.go b/pkg/scheduler/api/shared_device_pool.go index 6947eb76b75..d06bb84dbda 100644 --- a/pkg/scheduler/api/shared_device_pool.go +++ b/pkg/scheduler/api/shared_device_pool.go @@ -39,7 +39,6 @@ type Devices interface { //HasDeviceRequest checks if the 'pod' request this device HasDeviceRequest(pod *v1.Pod) bool //FiltreNode checks if the 'pod' fit in current node - // The first return value represents the filtering result, and the value range is "0, 1, 2, 3" // 0: Success // Success means that plugin ran correctly and found pod schedulable. @@ -60,7 +59,7 @@ type Devices interface { // The accompanying status message should explain why the pod is unschedulable. FilterNode(pod *v1.Pod) (int, string, error) - //ScoreNode returns the score of the current node based on this device + //ScoreNode returns the score of the current node based on this device ScoreNode(pod *v1.Pod) (float64, error) //Allocate action in predicate