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

eventchecker: simplify yaml spec for eventchecker #123

Merged

Conversation

willfindlay
Copy link
Contributor

Define a private helper struct to replace the old eventchecker spec and use it to codegen
an UnmarshalJSON and MarshalJSON implementation for a wrapper struct around the
EventChecker interface. This enables seamless marshaling and unmarshaling of the
underlying interface and a much cleaner API.

It may be possible to do something similar for MultiEventChecker but details are TBD
around what might look like.

Signed-off-by: William Findlay [email protected]

Define a private helper struct to replace the old eventchecker spec and use it to codegen
an UnmarshalJSON and MarshalJSON implementation for a wrapper struct around the
EventChecker interface. This enables seamless marshaling and unmarshaling of the
underlying interface and a much cleaner API.

It may be possible to do something similar for MultiEventChecker but details are TBD
around what might look like.

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay requested a review from a team as a code owner June 3, 2022 19:41
@willfindlay willfindlay requested review from kaworu and jrfastab June 3, 2022 19:41
@jrfastab jrfastab merged commit b64c81e into cilium:main Jun 3, 2022
@willfindlay willfindlay deleted the pr/willfindlay/modular-eventchecker branch June 3, 2022 19:53
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