-
Notifications
You must be signed in to change notification settings - Fork 1.8k
RFE: Watch labels #1808
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
Comments
I'm not sure if @hasbro17 has any background on this, but this seems do-able as a PR to controller-runtime. I did my best to trace back from the Perhaps it would be possible to update |
@joelanford There's already a feature request for this upstream: kubernetes-sigs/controller-runtime#244 I think the general idea is that we'll want to pass down a predicate to a controller's Watch that would dynamically make the informer's ListWatch filtered. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. 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. |
Feature Request
In #314 / #428, the ability was added to watch by label selector. This is useful if the watch would otherwise cause a lot of unnecessary objects to be kept in cache / sent over the wire. However, with the move to the controller-runtime, it seems that feature was lost.
What I really need for my particular use case is the ability to watch for all configmaps with a specific label, in all namespaces. I'd like to avoid keeping all configmaps in memory.
It may be that this particular use-case is too far outside the scope of a normal operator, in which case that's fine. I still think that label-based watches would be useful :-)
The text was updated successfully, but these errors were encountered: