From 153812595a549343c59f9c899fb77eb2e6f1cc74 Mon Sep 17 00:00:00 2001 From: andyli Date: Tue, 3 Aug 2021 16:23:57 +0800 Subject: [PATCH] Revert "cluster: fix the bug of unchange when the status is't updated. #158" --- cluster/syncer/status.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cluster/syncer/status.go b/cluster/syncer/status.go index 06ede056..02df3904 100644 --- a/cluster/syncer/status.go +++ b/cluster/syncer/status.go @@ -226,9 +226,7 @@ func (s *StatusSyncer) updateNodeStatus(ctx context.Context, cli client.Client, log.Error(err, "cannot update pod", "name", podName, "namespace", pod.Namespace) } } - if len(pods) != int(*s.Spec.Replicas) { - return fmt.Errorf("not all replicas do something") - } + return nil }