move NoDiskConflict predicate to its filter plugin

This commit is contained in:
Wen Gao
2019-12-25 15:44:59 +08:00
parent e94cf58f25
commit e5d90c57f0
5 changed files with 88 additions and 324 deletions

View File

@@ -117,7 +117,12 @@ func init() {
)
// Fit is determined by non-conflicting disk volumes.
scheduler.RegisterFitPredicate(predicates.NoDiskConflictPred, predicates.NoDiskConflict)
scheduler.RegisterFitPredicateFactory(
predicates.NoDiskConflictPred,
func(args scheduler.AlgorithmFactoryArgs) predicates.FitPredicate {
return nil
},
)
// GeneralPredicates are the predicates that are enforced by all Kubernetes components
// (e.g. kubelet and all schedulers)