Merge pull request #39803 from jayunit100/sched_cleanup_config_1

Automatic merge from submit-queue (batch tested with PRs 39803, 39698, 39537, 39478)

Use controller interface for everything in config factory

**What this PR does / why we need it**:

We want to replace controller structs with interfaces 
- per the TODO in `ControllerInterface`
- Specifically this will make the decoupling from Config and reuse of the scheduler's subcomponents cleaner.
pull/6/head
Kubernetes Submit Queue 2017-01-12 15:06:27 -08:00 committed by GitHub
commit b932c82739
1 changed files with 5 additions and 5 deletions

View File

@ -80,12 +80,12 @@ type ConfigFactory struct {
StopEverything chan struct{} StopEverything chan struct{}
informerFactory informers.SharedInformerFactory informerFactory informers.SharedInformerFactory
scheduledPodPopulator *cache.Controller scheduledPodPopulator cache.ControllerInterface
nodePopulator *cache.Controller nodePopulator cache.ControllerInterface
pvPopulator *cache.Controller pvPopulator cache.ControllerInterface
pvcPopulator cache.ControllerInterface pvcPopulator cache.ControllerInterface
servicePopulator *cache.Controller servicePopulator cache.ControllerInterface
controllerPopulator *cache.Controller controllerPopulator cache.ControllerInterface
schedulerCache schedulercache.Cache schedulerCache schedulercache.Cache