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

controller: coallescing of sotw cache subscription events #35

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

guicassolato
Copy link
Contributor

Make replacing the state of the cache atomic for full lists of resources, so only one message is written to the internal channel before propagation by the controller instead of one message per resource.

This will cause the sotw reconciler to pick up and propagte one single reconciliation call for each state of the world, instead of mimicking the traditional controller-runtime approach of more or less one call per cluster event.

@guicassolato guicassolato self-assigned this Sep 30, 2024
controller/controller.go Outdated Show resolved Hide resolved
Signed-off-by: Guilherme Cassolato <[email protected]>
@guicassolato guicassolato requested a review from KevFan September 30, 2024 13:56
controller/controller.go Outdated Show resolved Hide resolved
controller/controller.go Outdated Show resolved Hide resolved
@guicassolato guicassolato force-pushed the single-watchable-cache-entry branch from 6102fc5 to 0cc0687 Compare September 30, 2024 15:04
@guicassolato guicassolato force-pushed the single-watchable-cache-entry branch from 0cc0687 to 4beba76 Compare September 30, 2024 15:07
@guicassolato guicassolato requested a review from KevFan September 30, 2024 15:18
Copy link
Contributor

@KevFan KevFan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 💯

@guicassolato guicassolato merged commit 2cc24ce into main Sep 30, 2024
6 checks passed
@guicassolato guicassolato deleted the single-watchable-cache-entry branch September 30, 2024 15:48
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.

3 participants