-
Notifications
You must be signed in to change notification settings - Fork 149
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
[release-1.6] Fix cache miss hit on resource recreation #1818
[release-1.6] Fix cache miss hit on resource recreation #1818
Conversation
The k8s client is configured to use selectors based on label to watch only a subset of certain resources to limit the memory consumption. IF the user explictly removes that label from one of the watched object, the client cache will miss it and so the operator will try recreating it failing then with AlreadyExists. Let's explictly detect this corner case and fix it setting the missing label with a custom client to bypass the cache. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2032837 Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Kudos, SonarCloud Quality Gate passed! |
Pull Request Test Coverage Report for Build 1985232453
💛 - Coveralls |
ignoring slightly decreased coverage due to a path that cannot be covered with the fake client |
@tiraboschi: Overrode contexts on behalf of tiraboschi: coverage/coveralls In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tiraboschi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated cherry-pick of #1813
/assign tiraboschi