mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 03:53:25 +02:00
Use queues for the pod events (#30)
This commit is contained in:
+1
-6
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/zalando-incubator/postgres-operator/pkg/util/k8sutil"
|
||||
)
|
||||
|
||||
func (c *Cluster) Sync(stopCh <-chan struct{}) error {
|
||||
func (c *Cluster) Sync() error {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
|
||||
@@ -16,11 +16,6 @@ func (c *Cluster) Sync(stopCh <-chan struct{}) error {
|
||||
c.logger.Errorf("could not load resources: %v", err)
|
||||
}
|
||||
|
||||
if !c.podDispatcherRunning {
|
||||
go c.podEventsDispatcher(stopCh)
|
||||
c.podDispatcherRunning = true
|
||||
}
|
||||
|
||||
c.logger.Debugf("Syncing secrets")
|
||||
if err := c.syncSecrets(); err != nil {
|
||||
if !k8sutil.ResourceAlreadyExists(err) {
|
||||
|
||||
Reference in New Issue
Block a user