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

filters: implement pod regex filter + misc fixes #270

Merged
merged 3 commits into from
Jul 30, 2022
Merged

Conversation

willfindlay
Copy link
Contributor

@willfindlay willfindlay commented Jul 29, 2022

This PR implements a new filter for filtering by pod name using a regex. Note that we
had to use number 7 here and shift everything else over by one. This is technically
a breakage but needs to be done for historical compatibility reasons.

Also rolled in some fixes for the eventchecker.

This commit implements a new filter for filtering by pod name using a regex. Note that we
had to use number 7 here and shift everything else over by one. This is tehcnically
a breakage but needs to be done for historical compatibility reasons.

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay force-pushed the pr/willfindlay/proto branch 3 times, most recently from 2f7b5db to 020cbc4 Compare July 29, 2022 15:55
While we don't currently need to check lists of primitives or enums with the current
Tetragon proto, it's possible that this might change in the future. The way the
eventchecker is currently set up, it is not equipped to handle this due to type signature
mismatches around pointers. Let's fix this by adding the ability to tag inner list fields
as being inner fields and adjusting the logic to generate these field checks.

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay force-pushed the pr/willfindlay/proto branch from 020cbc4 to 25396c7 Compare July 29, 2022 16:02
@willfindlay willfindlay marked this pull request as ready for review July 29, 2022 16:03
@willfindlay willfindlay requested a review from a team as a code owner July 29, 2022 16:03
@willfindlay willfindlay marked this pull request as draft July 29, 2022 16:18
@jrfastab
Copy link
Contributor

Its not breaking anything we haven't release yet.

@willfindlay willfindlay force-pushed the pr/willfindlay/proto branch from e82124a to 187ae54 Compare July 29, 2022 17:42
Some tests might want to edit the config defaults before they run, so let's make the
defaults themselves configurable.

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay force-pushed the pr/willfindlay/proto branch from 187ae54 to 7de69bb Compare July 29, 2022 17:46
@willfindlay willfindlay marked this pull request as ready for review July 29, 2022 19:12
@willfindlay willfindlay changed the title filters: implement pod regex filter filters: implement pod regex filter + misc fixes Jul 29, 2022
@jrfastab jrfastab merged commit e280abf into main Jul 30, 2022
@jrfastab jrfastab deleted the pr/willfindlay/proto branch July 30, 2022 04:02
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.

3 participants