Skip to content
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

Consider using informers to watch k8s resources rather than listing #161

Open
cbroglie opened this issue Jun 15, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@cbroglie
Copy link
Contributor

The client-go informers package provides utilities to subscribe to changes to k8s resources and keep an in-memory cache up to date. This avoids needing to ask the API server to fetch the list from etcd every refresh interval, and allows probes to always operate on fresh data.

If there's interest, I'd be happy to submit a PR with the necessary changes.

@cbroglie cbroglie added the enhancement New feature or request label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant