diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 339ea183b..d273a50c6 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -146,15 +146,11 @@ func (c *Controller) initController() { func (c *Controller) runPodInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) { defer wg.Done() - go c.podInformer.Run(stopCh) - - <-stopCh + c.podInformer.Run(stopCh) } func (c *Controller) runPostgresqlInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) { defer wg.Done() - go c.postgresqlInformer.Run(stopCh) - - <-stopCh + c.postgresqlInformer.Run(stopCh) }