reset cluster error on successful update or sync (#29)

This commit is contained in:
Murat Kabilov 2017-05-22 15:45:38 +02:00 committed by Oleksii Kliukin
parent bc17897478
commit c470bd6646
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ func (c *Controller) processEvent(obj interface{}) error {
return nil return nil
} }
cl.Error = nil
logger.Infof("Cluster '%s' has been updated", clusterName) logger.Infof("Cluster '%s' has been updated", clusterName)
case spec.EventDelete: case spec.EventDelete:
logger.Infof("Deletion of the '%s' cluster started", clusterName) logger.Infof("Deletion of the '%s' cluster started", clusterName)
@ -171,6 +172,7 @@ func (c *Controller) processEvent(obj interface{}) error {
logger.Errorf("%v", cl) logger.Errorf("%v", cl)
return nil return nil
} }
cl.Error = nil
logger.Infof("Cluster '%s' has been synced", clusterName) logger.Infof("Cluster '%s' has been synced", clusterName)
} }