Skip to content

Conversation

@sysadmind
Copy link
Contributor

This is an alternative implementation of the previous retriever in pkg/clusterinfo. The previous implementation required registering collectors and receiving updates over a channel. This InfoProvider instead provides a public method to get the cluster info with a cache to reduce network calls. The Collector.Update signature was also updated to take an UpdateContext. This UpdateContext can provide with an easy way to extend the context available during the Update calls on Collectors.

@sysadmind sysadmind requested a review from SuperQ June 18, 2025 03:04
@sysadmind
Copy link
Contributor Author

bump @SuperQ

This is an alternative implementation of the previous retriever in pkg/clusterinfo. The previous implementation required registering collectors and receiving updates over a channel. This InfoProvider instead provides a public method to get the cluster info with a cache to reduce network calls. The Collector.Update signature was also updated to take an UpdateContext. This UpdateContext can provide with an easy way to extend the context available during the Update calls on Collectors.

Signed-off-by: Joe Adams <[email protected]>
Signed-off-by: Joe Adams <[email protected]>
@sysadmind sysadmind force-pushed the cluster-info-rewrite branch from ba5c567 to d617dd5 Compare November 5, 2025 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant