Commit 180ab70d authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #25560 from ping035627/ping035627-patch-3

Automatic merge from submit-queue A optimization for “RegisterCustomFitPredicate” function, avoiding redundancy
parents 086ace44 82009eb5
......@@ -121,6 +121,7 @@ func RegisterCustomFitPredicate(policy schedulerapi.PredicatePolicy) string {
} else if predicateFactory, ok = fitPredicateMap[policy.Name]; ok {
// checking to see if a pre-defined predicate is requested
glog.V(2).Infof("Predicate type %s already registered, reusing.", policy.Name)
return policy.Name
}
if predicateFactory == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment