Move volumebinding predicate to its filter plugin

Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
This commit is contained in:
zouyee
2019-12-23 21:57:49 +08:00
parent 82c7c86998
commit 83408acf75
6 changed files with 187 additions and 78 deletions

View File

@@ -133,7 +133,7 @@ func init() {
scheduler.RegisterFitPredicateFactory(
predicates.CheckVolumeBindingPred,
func(args scheduler.AlgorithmFactoryArgs) predicates.FitPredicate {
return predicates.NewVolumeBindingPredicate(args.VolumeBinder)
return nil
},
)
}