Skip to content

Commit

Permalink
fix: cloneset revision update
Browse files Browse the repository at this point in the history
Signed-off-by: suhe <suhe@njust.edu.cn>
  • Loading branch information
qswksp committed Mar 31, 2024
1 parent 6ec9e83 commit ae7e1cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/cloneset/cloneset_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func (r *realStatusUpdater) calculateStatus(cs *appsv1alpha1.CloneSet, newStatus
}
}
// Consider the update revision as stable if revisions of all pods are consistent to it and have the expected number of replicas, no need to wait all of them ready
if newStatus.UpdatedReplicas == newStatus.Replicas && newStatus.Replicas == *cs.Spec.Replicas {
//if newStatus.UpdatedReplicas == newStatus.Replicas && newStatus.Replicas == *cs.Spec.Replicas {
if newStatus.UpdatedReplicas == newStatus.Replicas {
newStatus.CurrentRevision = newStatus.UpdateRevision
}

Expand Down

0 comments on commit ae7e1cf

Please sign in to comment.