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
+2
View File
@@ -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)
}