Remove pod dispatcher

This commit is contained in:
Murat Kabilov
2017-07-27 14:16:49 +02:00
committed by GitHub
parent 3ad4b127c4
commit 2fe22ff614
3 changed files with 15 additions and 33 deletions
+2 -3
View File
@@ -171,10 +171,9 @@ func (c *Controller) initController() {
func (c *Controller) Run(stopCh <-chan struct{}, wg *sync.WaitGroup) {
c.initController()
wg.Add(4)
wg.Add(3)
go c.runPodInformer(stopCh, wg)
go c.runPostgresqlInformer(stopCh, wg)
go c.podEventsDispatcher(stopCh, wg)
go c.clusterResync(stopCh, wg)
for i := range c.clusterEventQueues {
@@ -195,4 +194,4 @@ func (c *Controller) runPostgresqlInformer(stopCh <-chan struct{}, wg *sync.Wait
defer wg.Done()
c.postgresqlInformer.Run(stopCh)
}
}