-
Notifications
You must be signed in to change notification settings - Fork 670
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
Wrapping k8s client with write filter and cache reader #4752
Conversation
Signed-off-by: Daniel Rammer <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4752 +/- ##
=======================================
Coverage 58.18% 58.19%
=======================================
Files 626 626
Lines 53833 53826 -7
=======================================
Hits 31322 31322
+ Misses 20003 19996 -7
Partials 2508 2508
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
This looks good to me. I was struggling with unit test for this and I guess you might be the same. Not sure how to properly test it without some refactoring in place. |
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
Tracking issue
fixes #4730
Why are the changes needed?
The previous attempt (#4733) mistakenly put he cache lookup into a loop until it was populated. This caused large CPU spikes.
What changes were proposed in this pull request?
This PR bypasses the k8sClient internal caching logic and instead just wraps an uncached k8s client with a cache lookup for writes and a write through filter on
create
/delete
operations.How was this patch tested?
local
Setup process
Screenshots
Check all the applicable boxes
Related PRs
NA
Docs link
NA