mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 05:10:23 +02:00
Do not create roles if cluster is masterless
fix pod deletion
This commit is contained in:
+5
-1
@@ -6,7 +6,11 @@ import (
|
||||
"github.bus.zalan.do/acid/postgres-operator/pkg/util"
|
||||
)
|
||||
|
||||
func (c *Cluster) SyncCluster() {
|
||||
func (c *Cluster) SyncCluster(stopCh <-chan struct{}) {
|
||||
if !c.podDispatcherRunning {
|
||||
go c.podEventsDispatcher(stopCh)
|
||||
}
|
||||
|
||||
c.logger.Debugf("Syncing Secrets")
|
||||
if err := c.syncSecrets(); err != nil {
|
||||
c.logger.Infof("Can't sync Secrets: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user