switch to require 'go controller.Run()'

This commit is contained in:
Daniel Smith
2015-04-07 17:40:30 -07:00
parent 5f7715f0e9
commit 6835318d1e
3 changed files with 6 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ func (f *ConfigFactory) CreateFromKeys(predicateKeys, priorityKeys util.StringSe
cache.NewReflector(f.createUnassignedPodLW(), &api.Pod{}, f.PodQueue, 0).RunUntil(f.StopEverything)
// Begin populating scheduled pods.
f.scheduledPodPopulator.Run(f.StopEverything)
go f.scheduledPodPopulator.Run(f.StopEverything)
// Watch minions.
// Minions may be listed frequently, so provide a local up-to-date cache.