Skip to content

fix(controller): prevent canary scale-up after abort with dynamic stable scaling - #5018

Open
AruneshDwivedi wants to merge 1 commit into
argoproj:masterfrom
AruneshDwivedi:fix/canary-scale-up-after-abort
Open

AruneshDwivedi wants to merge 1 commit into
argoproj:masterfrom
AruneshDwivedi:fix/canary-scale-up-after-abort

Conversation

@AruneshDwivedi

Copy link
Copy Markdown
Contributor

Summary

When aborting with dynamic stable scaling, the canary replica count is now set to 0 instead of using max(trafficWeightReplicaCount, canaryCount). The previous logic could scale the canary back up if weights.Canary.Weight was stale, causing the canary RS to grow when spec.replicas increased.

Changes

  • : Set canaryCount to 0 during abort instead of using max(trafficWeightReplicaCount, canaryCount)

Fixes #4973

…ble scaling

When aborting with dynamic stable scaling, the canary replica count
is now set to 0 instead of using max(trafficWeightReplicaCount, canaryCount).
The previous logic could scale the canary back up if weights.Canary.Weight
was stale, causing the canary RS to grow when spec.replicas increased.
@AruneshDwivedi
AruneshDwivedi requested a review from a team as a code owner September 5, 2026 07:02
@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Published E2E Test Results

4 files  8 suites   0s ⏱️
1 tests 0 ✅ 0 💤 1 ❌
0 runs  -4 ✅ 0 💤 4 ❌

For more details on these failures, see this check.

Results for commit acecb1f.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Published Unit Test Results

    1 files    132 suites   1m 2s ⏱️
1 332 tests 1 331 ✅ 0 💤  1 ❌
1 331 runs  1 308 ✅ 0 💤 23 ❌

For more details on these failures, see this check.

Results for commit acecb1f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Canary Rollout: Scaling up Pod-Count increases Canary Pod Count after aborted

2 participants