Skip to content

Commit

Permalink
fix: stop rollout from entering degraded state during blueGreen pause.
Browse files Browse the repository at this point in the history
…Fixes #3843 (#3845)

add check for overall pause condition to indefinite step

Signed-off-by: Miles <[email protected]>
Co-authored-by: Miles <[email protected]>
  • Loading branch information
miles-w-3 and Miles authored Sep 27, 2024
1 parent 9b60eca commit 4e44913
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rollout/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ func isIndefiniteStep(r *v1alpha1.Rollout) bool {
if currentStep != nil && (currentStep.Experiment != nil || currentStep.Analysis != nil || currentStep.Pause != nil) {
return true
}
return false
// also check the pause condition to cover blueGreen
pauseCond := conditions.GetRolloutCondition(r.Status, v1alpha1.RolloutPaused)
pausedCondTrue := pauseCond != nil && pauseCond.Status == corev1.ConditionTrue
return pausedCondTrue
}

// isWaitingForReplicaSetScaleDown returns whether or not the rollout still has other replica sets with a scale down deadline annotation
Expand Down

0 comments on commit 4e44913

Please sign in to comment.