Implement support for updating volume limits

Create a new predicate to count CSI volumes
This commit is contained in:
Hemant Kumar
2018-08-13 19:38:30 -04:00
parent 4e76bb487e
commit 4b17a48def
15 changed files with 464 additions and 265 deletions

View File

@@ -137,6 +137,12 @@ func defaultPredicates() sets.String {
return predicates.NewMaxPDVolumeCountPredicate(predicates.AzureDiskVolumeFilterType, args.PVInfo, args.PVCInfo)
},
),
factory.RegisterFitPredicateFactory(
predicates.MaxCSIVolumeCountPred,
func(args factory.PluginFactoryArgs) algorithm.FitPredicate {
return predicates.NewCSIMaxVolumeLimitPredicate(args.PVInfo, args.PVCInfo)
},
),
// Fit is determined by inter-pod affinity.
factory.RegisterFitPredicateFactory(
predicates.MatchInterPodAffinityPred,