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: delay service injection of selector labels until ReplicaSet available #1777

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

jessesuen
Copy link
Member

@jessesuen jessesuen commented Jan 15, 2022

This change delays the updating of the stable service selector unless the stable replicaset is ready available. This helps ensure we don't prematurely point the stable service to nothing in the event we are taking over a Service in the migration case, potentially causing downtime.

Resolves #1731

Signed-off-by: Jesse Suen [email protected]

@codecov
Copy link

codecov bot commented Jan 15, 2022

Codecov Report

Merging #1777 (a1ebaa4) into master (b0ae59a) will increase coverage by 0.00%.
The diff coverage is 89.47%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1777   +/-   ##
=======================================
  Coverage   82.06%   82.07%           
=======================================
  Files         116      116           
  Lines       16264    16270    +6     
=======================================
+ Hits        13347    13353    +6     
  Misses       2235     2235           
  Partials      682      682           
Impacted Files Coverage Δ
rollout/service.go 76.06% <84.61%> (+0.92%) ⬆️
rollout/canary.go 74.64% <100.00%> (-0.08%) ⬇️
utils/replicaset/replicaset.go 90.04% <100.00%> (ø)

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 b0ae59a...a1ebaa4. Read the comment docs.

@jessesuen jessesuen changed the title fix: delay service injection of selector labels until ReplicaSet ready fix: delay service injection of selector labels until ReplicaSet available Jan 15, 2022
rollout/service.go Outdated Show resolved Hide resolved
Copy link
Contributor

@alexmt alexmt left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Jan 19, 2022

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
1.1% 1.1% Duplication

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.

Downtime On initial deployment
3 participants