mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 22:10:39 +02:00
Return error instead of logging it
This commit is contained in:
@@ -165,7 +165,10 @@ func (c *Controller) processEvent(obj interface{}) error {
|
||||
c.clustersMu.Unlock()
|
||||
}
|
||||
|
||||
cl.SyncCluster(stopCh)
|
||||
if err := cl.Sync(stopCh); err != nil {
|
||||
logger.Errorf("Can't sync cluster '%s': %s", clusterName, err)
|
||||
return nil
|
||||
}
|
||||
|
||||
logger.Infof("Cluster '%s' has been synced", clusterName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user