You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with the controller-runtime package in Kubernetes and I need to implement a functionality where the API server only notifies my controller about specific Custom Resource Definitions (CRDs). Specifically, I want to filter events so that I only receive notifications for CRDs where metadata.name is equal to a specific value, such as nodeName.
I would like to know:
How can I configure the manager initialization to achieve this?
Is there a way to set up a field selector to filter these events at the API server level?
If direct support for field selectors is not available, what would be the best approach to implement this functionality in my controller?
Any guidance or examples would be greatly appreciated!
Thank you!
The text was updated successfully, but these errors were encountered:
In my case: I want to watch one configMap. But I don't want to filter the cache for that, because I want to also read other configMaps. Afaik I can't get objects via the default (cached) client, if the cache is filtered.
Body:
Hello,
I am working with the controller-runtime package in Kubernetes and I need to implement a functionality where the API server only notifies my controller about specific Custom Resource Definitions (CRDs). Specifically, I want to filter events so that I only receive notifications for CRDs where metadata.name is equal to a specific value, such as nodeName.
I would like to know:
How can I configure the manager initialization to achieve this?
Is there a way to set up a field selector to filter these events at the API server level?
If direct support for field selectors is not available, what would be the best approach to implement this functionality in my controller?
Any guidance or examples would be greatly appreciated!
Thank you!
The text was updated successfully, but these errors were encountered: