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
Signed-off-by: mitchell amihod <[email protected]>
  • Loading branch information
meeech committed Jun 2, 2023
1 parent 0cbf6ae commit b701d21
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 b701d21

Please sign in to comment.