From 0735ec0202308fb107b954acbf2c38dd5c216fa8 Mon Sep 17 00:00:00 2001 From: changzhen Date: Tue, 30 Jul 2024 20:51:25 +0800 Subject: [PATCH] update pluginToClusterScores length from filterPlugins length to scorePlugins length Signed-off-by: changzhen --- pkg/scheduler/framework/runtime/framework.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/runtime/framework.go b/pkg/scheduler/framework/runtime/framework.go index 2653fdab1..5caf0b971 100644 --- a/pkg/scheduler/framework/runtime/framework.go +++ b/pkg/scheduler/framework/runtime/framework.go @@ -132,7 +132,7 @@ func (frw *frameworkImpl) RunScorePlugins( defer func() { metrics.FrameworkExtensionPointDuration.WithLabelValues(score, result.Code().String()).Observe(utilmetrics.DurationInSeconds(startTime)) }() - pluginToClusterScores := make(framework.PluginToClusterScores, len(frw.filterPlugins)) + pluginToClusterScores := make(framework.PluginToClusterScores, len(frw.scorePlugins)) for _, p := range frw.scorePlugins { var scoreList framework.ClusterScoreList for _, cluster := range clusters {