Skip to content

Commit

Permalink
fix update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
runkecheng committed Aug 2, 2021
1 parent 01a3737 commit 872002d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cluster/syncer/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ func (s *StatefulSetSyncer) updatePod(ctx context.Context) error {
log.Info("statefulSet was changed, run update")

if s.sfs.Status.ReadyReplicas < s.sfs.Status.Replicas {
log.Info("can't start/continue 'update': waiting for all replicas are ready")
return nil
return fmt.Errorf("can't start/continue 'update': waiting for all replicas are ready")
}

pods := corev1.PodList{}
Expand Down

0 comments on commit 872002d

Please sign in to comment.