-
Notifications
You must be signed in to change notification settings - Fork 79
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
feat: allow disabling/overriding ObjectFilter in status watcher #642
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: floreks The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What's the benefit of using a custom object filter? The built-in filter filters by ID from a map, so it's pretty efficient, just a hashtable lookup. It shouldn't cause any real performance impact. |
There might not be many use cases for the custom implementation of PS. From what I can see current cli-utils/pkg/kstatus/watcher/object_filter.go Lines 27 to 30 in 4d57e6e
cli-utils/pkg/object/objmetadata_set.go Lines 56 to 62 in 4d57e6e
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
With the addition of
Filters
to theDefaultStatusWatcher
it is now possible to apply server-side filtering via labels/fields. This PR allows dropping or overriding client-side filtering with a customObjectFilter
. In our case we are making sure that every resource in the inventory will contain a static label that can be used for server-side filtering and further client-side filtering is obsolete.