-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cache miss hit on resource recreation (#1818)
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> Co-authored-by: Simone Tiraboschi <stirabos@redhat.com>
- Loading branch information
1 parent
4700fae
commit 9c826c9
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters