Skip to content

Commit

Permalink
Apply stable selectors on canary service on rollout abort argoproj#2781
Browse files Browse the repository at this point in the history
  • Loading branch information
meeech committed May 31, 2023
1 parent 906f9a9 commit 7c592b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rollout/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,13 @@ func (c *rolloutContext) reconcileStableAndCanaryService() error {
if err != nil {
return err
}
err = c.ensureSVCTargets(c.rollout.Spec.Strategy.Canary.CanaryService, c.newRS, true)

canaryRS := c.newRS
if c.pauseContext.IsAborted() {
canaryRS = c.stableRS
}

err = c.ensureSVCTargets(c.rollout.Spec.Strategy.Canary.CanaryService, canaryRS, true)
if err != nil {
return err
}
Expand Down

0 comments on commit 7c592b6

Please sign in to comment.