Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
  • Loading branch information
zachaller committed Feb 18, 2025
1 parent baed429 commit b448234
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rollout/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ func (c *rolloutContext) checkPausedConditions() error {

var updatedConditions []*v1alpha1.RolloutCondition

//if (isPaused != progCondPaused) && !abortCondExists && c.rollout.Status.StableRS != c.rollout.Status.CurrentPodHash {
if (isPaused != progCondPaused) && !abortCondExists && !isRolloutCompleted {
if isPaused {
updatedConditions = append(updatedConditions, conditions.NewRolloutCondition(v1alpha1.RolloutProgressing, corev1.ConditionUnknown, conditions.RolloutPausedReason, conditions.RolloutPausedMessage))
Expand Down Expand Up @@ -626,7 +625,6 @@ func (c *rolloutContext) calculateRolloutConditions(newStatus v1alpha1.RolloutSt

isHealthyRollout := newStatus.Replicas == newStatus.AvailableReplicas && currentCond != nil && currentCond.Reason == conditions.NewRSAvailableReason && currentCond.Type != v1alpha1.RolloutProgressing
// Check for progress. Only do this if the latest rollout hasn't completed yet and it is not aborted
// if !isHealthyRollout && !isAborted && newStatus.CurrentPodHash != newStatus.StableRS {
if !isHealthyRollout && !isAborted {
switch {
case conditions.RolloutHealthy(c.rollout, &newStatus):
Expand Down

0 comments on commit b448234

Please sign in to comment.