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

make sure objects with message fields are processed #232

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

mruoss
Copy link
Collaborator

@mruoss mruoss commented Mar 2, 2023

Fixes #231

Copy link
Contributor

@elliottneilclark elliottneilclark left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +188 to 192
defp process_object(%{"object" => %{"kind" => _} = object} = new_event, state) do
# Emit new event
new_state = struct!(state, resource_version: object["metadata"]["resourceVersion"])
{[new_event], new_state}
end
Copy link
Contributor

Choose a reason for hiding this comment

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

That's elegant. Nice.

@mruoss mruoss merged commit afeac1b into develop Mar 2, 2023
@mruoss mruoss deleted the fix-watch-objects-with-message branch March 27, 2023 18:06
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.

Streams resetting resource version
2 participants