kubernetes/plugin/pkg/scheduler/algorithmprovider/defaults
Kubernetes Submit Queue 7c96feb298
Merge pull request #54047 from kuramal/my
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Optimize Repeated registration of AlgorithmProvider when ApplyFeatureGates

**What this PR does / why we need it**:
modified ApplyFeatureGates() just add/del features, cancel the register of all AlgorithmProvider.

 there is Repeated registration of all AlgorithmProvider when ApplyFeatureGates() runs;
AlgorithmProvider have already registered when  package defaults loaded;
I think ApplyFeatureGates() is just add/del features, it needn't  register all AlgorithmProvider again
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```/release-note-none
```
2017-10-29 20:42:48 -07:00
..
BUILD move getMaxVols function to predicates.go and change the params of NewMaxPDVolumeCountPredicate funcs 2017-10-26 12:11:09 +08:00
compatibility_test.go Add PodDisruptionBudget to scheduler cache. 2017-10-20 23:22:02 -07:00
defaults_test.go move getMaxVols function to predicates.go and change the params of NewMaxPDVolumeCountPredicate funcs 2017-10-26 12:11:09 +08:00
defaults.go Merge pull request #54047 from kuramal/my 2017-10-29 20:42:48 -07:00