-
Notifications
You must be signed in to change notification settings - Fork 345
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 non-cached CR on reconciliation #940
Use non-cached CR on reconciliation #940
Conversation
ca4d437
to
aac0047
Compare
Codecov Report
@@ Coverage Diff @@
## master #940 +/- ##
=======================================
Coverage 64.45% 64.45%
=======================================
Files 82 82
Lines 6535 6535
=======================================
Hits 4212 4212
Misses 2179 2179
Partials 144 144
Continue to review full report at Codecov.
|
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
aac0047
to
f534f5a
Compare
@rubenvp8510, @annanay25, would one of you please review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super familiar with the controller package, but learning as I go. :)
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
When receiving a reconciliation request, we try to obtain the CR that triggered the event from Kubernetes repository. When using the regular client, we might end up retrieving a cached version that isn't up to date, meaning that we might see errors like the following from time to time:
This error isn't a big problem, as it will trigger another reconciliation loop and things will eventually stabilize, but given that we might have a couple of reconciliation loops for the same object when it is first created, we want to bypass the cache and reduce the risk of facing this error.
Signed-off-by: Juraci Paixão Kröhling [email protected]