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

[controller] Don't update Status if noop #219

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

schallert
Copy link
Collaborator

The current logic causes some Statuses to get updated even if they
haven't changed. This causes an update storm, where updating the status
causes the cluster to be re-enqueued for processing and then have its
status updated again. This puts unnecessary load on the API server and
operator.

The current logic causes some Statuses to get updated even if they
haven't changed. This causes an update storm, where updating the status
causes the cluster to be re-enqueued for processing and then have its
status updated again. This puts unnecessary load on the API server and
operator.
Copy link
Collaborator

@robskillington robskillington left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Jun 5, 2020

Codecov Report

Merging #219 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
- Coverage   75.42%   75.40%   -0.03%     
==========================================
  Files          30       30              
  Lines        2112     2118       +6     
==========================================
+ Hits         1593     1597       +4     
- Misses        392      393       +1     
- Partials      127      128       +1     

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 7e31fea...3df43da. Read the comment docs.

@schallert schallert merged commit a573cc6 into master Jun 5, 2020
@schallert schallert deleted the schallert/fix_status_update branch June 5, 2020 19:24
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.

2 participants