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

fix: retarget blue-green preview service before scaling up preview replicaset #1368

Merged
merged 2 commits into from
Aug 6, 2021

Conversation

jessesuen
Copy link
Member

Resolves #1151

This change implements the following behavior when creating the preview service and changing selectors.

  1. create preview replicaset with size 0
  2. retarget preview service to replicaset hash
  3. scale up the preview replicaset

Previously we would create the preview replicaset with the desired size (without the separate create and scale steps). This will allow all pods of the preview to be considered for readiness gate injection by the AWS LoadBalancer controller

Signed-off-by: Jesse Suen jesse_suen@intuit.com

@jessesuen jessesuen changed the title fix: retarget bluggreen preview service before scaling up preview replicaset fix: retarget blue-green preview service before scaling up preview replicaset Jul 22, 2021
@huikang
Copy link
Member

huikang commented Jul 23, 2021

@jessesuen , could you update the timeline in the b/g rollout doc: https://github.com/argoproj/argo-rollouts/blob/master/docs/features/bluegreen.md#previewservice? I think this change obsoletes some of the description. Thanks.

@jessesuen
Copy link
Member Author

Sure I'll update that as well. Thank you for the feedback.

@jessesuen jessesuen force-pushed the issue-1151-pod-readiness-gate branch 3 times, most recently from 45da217 to f0f1497 Compare July 31, 2021 00:05
@codecov
Copy link

codecov bot commented Jul 31, 2021

Codecov Report

Merging #1368 (f0f1497) into master (2620490) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

❗ Current head f0f1497 differs from pull request most recent head 5a90436. Consider uploading reports for the commit 5a90436 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1368      +/-   ##
==========================================
- Coverage   81.22%   81.19%   -0.03%     
==========================================
  Files         108      108              
  Lines        9916     9911       -5     
==========================================
- Hits         8054     8047       -7     
- Misses       1309     1310       +1     
- Partials      553      554       +1     
Impacted Files Coverage Δ
utils/conditions/conditions.go 78.94% <ø> (ø)
rollout/bluegreen.go 70.91% <33.33%> (ø)
rollout/sync.go 76.63% <100.00%> (+0.16%) ⬆️
rollout/canary.go 76.41% <0.00%> (-2.06%) ⬇️

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 ffe70da...5a90436. Read the comment docs.

Copy link
Contributor

@khhirani khhirani left a comment

Choose a reason for hiding this comment

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

LGTM

…plicaset

Signed-off-by: Jesse Suen <jesse_suen@intuit.com>
Signed-off-by: Jesse Suen <jesse_suen@intuit.com>
@jessesuen jessesuen force-pushed the issue-1151-pod-readiness-gate branch from f0f1497 to 5a90436 Compare August 6, 2021 10:14
@sonarcloud
Copy link

sonarcloud bot commented Aug 6, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.0% 2.0% Duplication

@jessesuen jessesuen merged commit 7a0704a into argoproj:master Aug 6, 2021
@jessesuen jessesuen deleted the issue-1151-pod-readiness-gate branch August 6, 2021 10:15
mdb pushed a commit to mdb/argo-rollouts that referenced this pull request Aug 10, 2021
…licaSet (argoproj#1368)

Signed-off-by: Jesse Suen <jesse_suen@intuit.com>
jessesuen added a commit that referenced this pull request Aug 23, 2021
…licaSet (#1368)

Signed-off-by: Jesse Suen <jesse_suen@intuit.com>
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.

Investigate ordering of service patching vs. replicaset creation
3 participants