Skip to content

Commit

Permalink
Merge pull request #161 from acekingke/fix_bug
Browse files Browse the repository at this point in the history
cluster: fix the bug of unchange when the status is't updated. #158
  • Loading branch information
andyli029 authored Aug 3, 2021
2 parents 0c76399 + e820782 commit 57bde3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/syncer/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ 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
}

Expand Down

0 comments on commit 57bde3e

Please sign in to comment.