From 02fb3387a07fdcfe5ff4407ed74f5b2bac227284 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Mon, 8 Jun 2020 16:39:19 +0800 Subject: [PATCH] Fix the incorrect error message of `InterPodAffinity` plugin A line of copy/paste code firstly from the method named `buildTopologyPairToScore`. Signed-off-by: Dave Chen --- pkg/scheduler/framework/plugins/interpodaffinity/scoring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go b/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go index a32f5706998..5b70ab03442 100644 --- a/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go +++ b/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go @@ -137,7 +137,7 @@ func (pl *InterPodAffinity) PreScore( } if pl.sharedLister == nil { - return framework.NewStatus(framework.Error, fmt.Sprintf("BuildTopologyPairToScore with empty shared lister")) + return framework.NewStatus(framework.Error, fmt.Sprintf("InterPodAffinity PreScore with empty shared lister found")) } affinity := pod.Spec.Affinity