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: single propagation of delta events #25

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

guicassolato
Copy link
Contributor

Fixes the delta reconcilers (based on cache.SharedInformer) so events are propagated only once per event.

Closes #23

@guicassolato guicassolato self-assigned this Aug 29, 2024
}

func (c *Controller) update(oldObj, newObj Object) {
func (c *Controller) update(_, newObj Object) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes update and create virtually identical, which is not ideal. See #24.

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 5445f17 into main Aug 29, 2024
6 checks passed
@guicassolato guicassolato deleted the fix/propagate branch August 29, 2024 15:59
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.

[controller] Delta reconciliation propagates event twice
2 participants