From d0eea0cabb0279c8e67832de68ebe3fdb5cb15b7 Mon Sep 17 00:00:00 2001 From: lixiang Date: Thu, 28 May 2020 10:35:46 +0800 Subject: [PATCH] Clean up code in LowNodeUtilization --- pkg/descheduler/strategies/lownodeutilization.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/descheduler/strategies/lownodeutilization.go b/pkg/descheduler/strategies/lownodeutilization.go index 0fd2148e4..d3a0b847a 100644 --- a/pkg/descheduler/strategies/lownodeutilization.go +++ b/pkg/descheduler/strategies/lownodeutilization.go @@ -41,9 +41,6 @@ type NodeUsageMap struct { type NodePodsMap map[*v1.Node][]*v1.Pod func LowNodeUtilization(ctx context.Context, client clientset.Interface, strategy api.DeschedulerStrategy, nodes []*v1.Node, evictLocalStoragePods bool, podEvictor *evictions.PodEvictor) { - if !strategy.Enabled { - return - } // todo: move to config validation? // TODO: May be create a struct for the strategy as well, so that we don't have to pass along the all the params? if strategy.Params.NodeResourceUtilizationThresholds == nil {