Skip to content

Conversation

ronaknnathani
Copy link
Collaborator

Summary

When identical events are emitted for a resource, kube-apiserver updates the previous event and increments the count field to represent how many times an event occurred. This is to optimize storage on ETCD. Such consolidation results in an update on the event.

Currently, the events exporter doesn't process any events that get updated so when similar events re-occur, they aren't processed. This change enables processing events that get updated.

Details

This PR is porting the fix mentioned here: resmoio#168.
Thanks to @Teng-Jiao-Chen for identifying the issue and the fix.

Tests

Tested as mentioned here: resmoio#168

When identical events are emitted for a resource, kube-apiserver updates the previous
event and increments the count field to represent how many times an event occurred. This
is to optimize storage on ETCD. Such consolidation results in an `update` on the event.

Currently, the events exporter doesn't process any events that get updated so when similar
events re-occur, they aren't processed. This change enables processing events that get updated.
Copy link
Collaborator

@dlessa-li dlessa-li left a comment

Choose a reason for hiding this comment

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

Thanks for bringing the changes into our repo!

@dlessa-li dlessa-li merged commit c879f1b into master Apr 29, 2024
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.

2 participants