Skip to content

Commit

Permalink
docs(canary): add comments for RollbackWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingandyyy committed Aug 16, 2023
1 parent ff373d5 commit 521c90e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rollout/canary.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ func (c *rolloutContext) syncRolloutStatusCanary() error {
c.recorder.Eventf(c.rollout, record.EventOptions{EventReason: "SkipSteps"}, "Rollback to stable ReplicaSets")
newStatus.CurrentStepIndex = &stepCount
} else if c.isRollbackWithinWindow() && replicasetutil.IsActive(c.newRS) {
// Else if we get here we detected that we are within the rollback window we can skip steps and move back to the active ReplicaSet
c.recorder.Eventf(c.rollout, record.EventOptions{EventReason: "SkipSteps"}, "Rollback to active ReplicaSets within RollbackWindow")
newStatus.CurrentStepIndex = &stepCount
}
Expand Down

0 comments on commit 521c90e

Please sign in to comment.