return create and sync error, not setStatus error (#2574)

* return create and sync error, not possible status set error
* update documentation and improve deletion logs
This commit is contained in:
Felix Kunde
2024-03-12 16:31:59 +01:00
committed by GitHub
parent a63a0758de
commit 8bd9080798
4 changed files with 22 additions and 15 deletions
-1
View File
@@ -339,7 +339,6 @@ func (c *Controller) processEvent(event ClusterEvent) {
lg.Error(cl.Error)
return
}
lg.Infof("cluster has been deleted")
} else {
if err = cl.Sync(event.NewSpec); err != nil {
cl.Error = fmt.Sprintf("could not sync cluster: %v", err)