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

fix:eventsource crash on cast #3238 #3282

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

Daimanta
Copy link
Contributor

@Daimanta Daimanta commented Sep 13, 2024

Checklist:

Fixes #3238

This fix prevents argo-events from crashing when an unexpected, that is not a *unstructured.Unstructured, is encountered. The solution is to filter out those objects as they cannot be parsed and will not have information that can be used in the rest of process.

In the old situation argo-events would crash on receiving the unexpected object.
In the new situation argo-events will ignore the unexpected object.

In case that the object is indeed a *unstructured.Unstructured, the program will behave as it did before.

Copy link
Member

@whynowy whynowy left a comment

Choose a reason for hiding this comment

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

Thank you!

@whynowy whynowy merged commit d679728 into argoproj:master Sep 19, 2024
6 of 8 checks passed
MenD32 pushed a commit to MenD32/argo-events that referenced this pull request Sep 23, 2024
Signed-off-by: MenD32 <amit@jounce.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants