From 57048b1743855f0c68c28faf43c0d9c812d634e3 Mon Sep 17 00:00:00 2001 From: weizhoublue <45163302+weizhoublue@users.noreply.github.com> Date: Mon, 18 Dec 2023 21:12:08 +0800 Subject: [PATCH] Merge pull request #2929 from cyclinder/spidercoorinator/update_status spidercoordinator: It should update the status to NotReady if any errors occur --- pkg/coordinatormanager/coordinator_informer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/coordinatormanager/coordinator_informer.go b/pkg/coordinatormanager/coordinator_informer.go index 52b094c5af..f6877c183d 100644 --- a/pkg/coordinatormanager/coordinator_informer.go +++ b/pkg/coordinatormanager/coordinator_informer.go @@ -320,7 +320,6 @@ func (cc *CoordinatorController) syncHandler(ctx context.Context, coordinatorNam coordCopy, err = cc.fetchPodAndServerCIDR(ctx, logger, coordCopy) if err != nil { logger.Sugar().Errorf("failed to handle spidercoordinator: %v", err) - return err } if !reflect.DeepEqual(coordCopy.Status, coord.Status) { @@ -328,6 +327,7 @@ func (cc *CoordinatorController) syncHandler(ctx context.Context, coordinatorNam logger.Sugar().Errorf("failed to patch spidercoordinator phase: %v", err.Error()) return err } + logger.Sugar().Infof("Success to patch coordinator's status to %v", coordCopy.Status) } return