From 061e0dbb7e82563d5bc3685f79c63f2e937dfca9 Mon Sep 17 00:00:00 2001 From: zhangmingld Date: Thu, 27 Sep 2018 14:42:49 +0800 Subject: [PATCH] func getPodsMatchingAffinity no longer exists,dont need it in comment --- pkg/scheduler/algorithm/predicates/metadata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scheduler/algorithm/predicates/metadata.go b/pkg/scheduler/algorithm/predicates/metadata.go index 4695bef0ade..d24b8968563 100644 --- a/pkg/scheduler/algorithm/predicates/metadata.go +++ b/pkg/scheduler/algorithm/predicates/metadata.go @@ -492,7 +492,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s } // targetPodMatchesAffinityOfPod returns true if "targetPod" matches ALL affinity terms of -// "pod". Similar to getPodsMatchingAffinity, this function does not check topology. +// "pod". This function does not check topology. // So, whether the targetPod actually matches or not needs further checks for a specific // node. func targetPodMatchesAffinityOfPod(pod, targetPod *v1.Pod) bool { @@ -509,7 +509,7 @@ func targetPodMatchesAffinityOfPod(pod, targetPod *v1.Pod) bool { } // targetPodMatchesAntiAffinityOfPod returns true if "targetPod" matches ANY anti-affinity -// term of "pod". Similar to getPodsMatchingAffinity, this function does not check topology. +// term of "pod". This function does not check topology. // So, whether the targetPod actually matches or not needs further checks for a specific // node. func targetPodMatchesAntiAffinityOfPod(pod, targetPod *v1.Pod) bool {