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

Store back the CR only if it has changed #249

Merged

Conversation

jpkrohling
Copy link
Contributor

Fixes #231 by comparing the original CR with the post-reconcile state, issuing an update only in case the CR has changed.

Signed-off-by: Juraci Paixão Kröhling juraci@kroehling.de

@jpkrohling
Copy link
Contributor Author

This change is Reviewable

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #249 into master will decrease coverage by 0.09%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #249     +/-   ##
=========================================
- Coverage    89.4%   89.31%   -0.1%     
=========================================
  Files          62       62             
  Lines        2738     2742      +4     
=========================================
+ Hits         2448     2449      +1     
- Misses        187      189      +2     
- Partials      103      104      +1
Impacted Files Coverage Δ
pkg/controller/jaeger/jaeger_controller.go 32.92% <40%> (-0.41%) ⬇️

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 f233687...396e9fe. Read the comment docs.

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@@ -109,16 +111,13 @@ func (r *ReconcileJaeger) Reconcile(request reconcile.Request) (reconcile.Result
return reconcile.Result{}, err
}

logFields.Info("Configured Jaeger instance")
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to remove it? We could indicate the changes on line 119

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I wanted to remove it. As someone managing the cluster, I'm not sure this would be useful at all in the day-to-day. It's certainly useful to get a positive confirmation in the beginning, but considering that there will be one change every 5 seconds (due to the metrics on #248), this would cause too much noise in the logs.

@jpkrohling jpkrohling merged commit 15c9dac into jaegertracing:master Mar 4, 2019
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