mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 15:46:44 +02:00
reset cluster error on successful update or sync (#29)
This commit is contained in:
committed by
Oleksii Kliukin
parent
bc17897478
commit
c470bd6646
@@ -132,6 +132,7 @@ func (c *Controller) processEvent(obj interface{}) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
cl.Error = nil
|
||||
logger.Infof("Cluster '%s' has been updated", clusterName)
|
||||
case spec.EventDelete:
|
||||
logger.Infof("Deletion of the '%s' cluster started", clusterName)
|
||||
@@ -171,6 +172,7 @@ func (c *Controller) processEvent(obj interface{}) error {
|
||||
logger.Errorf("%v", cl)
|
||||
return nil
|
||||
}
|
||||
cl.Error = nil
|
||||
|
||||
logger.Infof("Cluster '%s' has been synced", clusterName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user