Fix code to handle delayed binding volumes

This commit is contained in:
Hemant Kumar
2019-02-08 17:27:50 -05:00
parent fd633d192f
commit b3cc469997
3 changed files with 101 additions and 26 deletions

View File

@@ -81,7 +81,7 @@ func init() {
factory.RegisterFitPredicateFactory(
predicates.MaxCSIVolumeCountPred,
func(args factory.PluginFactoryArgs) predicates.FitPredicate {
return predicates.NewCSIMaxVolumeLimitPredicate(args.PVInfo, args.PVCInfo)
return predicates.NewCSIMaxVolumeLimitPredicate(args.PVInfo, args.PVCInfo, args.StorageClassInfo)
},
)
factory.RegisterFitPredicateFactory(