Skip to content

Commit b99b624

Browse files
miles-w-3meeech
authored andcommitted
fix: stop rollout from entering degraded state during blueGreen pause. Fixes argoproj#3843 (argoproj#3845)
add check for overall pause condition to indefinite step Signed-off-by: Miles <[email protected]> Co-authored-by: Miles <[email protected]>
1 parent 60384f8 commit b99b624

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rollout/sync.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,10 @@ func isIndefiniteStep(r *v1alpha1.Rollout) bool {
562562
if currentStep != nil && (currentStep.Experiment != nil || currentStep.Analysis != nil || currentStep.Pause != nil) {
563563
return true
564564
}
565-
return false
565+
// also check the pause condition to cover blueGreen
566+
pauseCond := conditions.GetRolloutCondition(r.Status, v1alpha1.RolloutPaused)
567+
pausedCondTrue := pauseCond != nil && pauseCond.Status == corev1.ConditionTrue
568+
return pausedCondTrue
566569
}
567570

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

0 commit comments

Comments
 (0)