Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the primary replicas when scaling up the canary (no hpa) #1110

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

Moscagus
Copy link
Contributor

If HPA isn't set and "spec.replicas" are not specified in the canary, it uses the primary replicas when scaling up the canary.
Therefore when the promotion ends, primary deployment is left with the correct number of pods and not 1 pod.

Note: The fix "Set primary deployment replicas when autoscaler isn't used #1106" requires that "spec.replicas" be set in each new canary deploy, otherwise at the end of the promotion the primary deploy is left with only 1 pod.

Signed-off-by: Moscagus [email protected]

@Moscagus Moscagus force-pushed the canary-replicas branch 4 times, most recently from 1478ba3 to ab062d2 Compare March 10, 2022 00:30
…replicas when scaling up the canary

Signed-off-by: Moscagus <[email protected]>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @Moscagus

@codecov-commenter
Copy link

Codecov Report

Merging #1110 (f7fd6cc) into main (cf8fe94) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1110   +/-   ##
=======================================
  Coverage   57.21%   57.22%           
=======================================
  Files          78       78           
  Lines        6344     6350    +6     
=======================================
+ Hits         3630     3634    +4     
  Misses       2172     2172           
- Partials      542      544    +2     
Impacted Files Coverage Δ
pkg/canary/deployment_controller.go 62.87% <0.00%> (-1.51%) ⬇️
pkg/loadtester/server.go 12.50% <0.00%> (-0.45%) ⬇️
pkg/loadtester/helmv3.go 0.00% <0.00%> (ø)
pkg/loadtester/helm.go
pkg/loadtester/authorizer.go 100.00% <0.00%> (ø)
pkg/controller/finalizer.go 37.66% <0.00%> (+0.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf8fe94...f7fd6cc. Read the comment docs.

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.

3 participants