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

tetragon: unify eventcache and execcache #266

Merged
merged 7 commits into from
Aug 1, 2022

Conversation

willfindlay
Copy link
Contributor

It wasn't necessary to split execcache and eventcache so let's fold it all into eventcache. See individual commits.

@willfindlay willfindlay marked this pull request as ready for review July 27, 2022 16:31
@willfindlay willfindlay requested a review from a team as a code owner July 27, 2022 16:31
This naming convention makes more sense since only Msg types implement this interface. It
also opens the door to adding additional interfaces to notify.go.

Signed-off-by: William Findlay <will@isovalent.com>
Signed-off-by: William Findlay <will@isovalent.com>
We weren't using the labels from Cilium, so let's remove them. These can be added back
later easily enough if we end up needing them.

Rather than using a generic interface, use notify.Event and notify.Message. This also
helps us avoid some unnecessary interface casting later in the event handler.

Signed-off-by: William Findlay <will@isovalent.com>
In preparation for merging eventcache with execcache, let's unify the metrics here.

Signed-off-by: William Findlay <will@isovalent.com>
An earlier find and replace error resulted in some instances of "TETRAGON", let's clean up
them.

Signed-off-by: William Findlay <will@isovalent.com>
There's no need to have two caches here and unifying them will greatly simplify the code
and reduce the possibility to make errors such as the one fixed in 54856c9.

Signed-off-by: William Findlay <will@isovalent.com>
@willfindlay willfindlay force-pushed the pr/willfindlay/unify-execcache branch from cc61ba5 to 50f5de8 Compare July 29, 2022 00:07
mountPath was unused and our static checks were complaining. Let's get rid of it.

Signed-off-by: William Findlay <will@isovalent.com>
@jrfastab
Copy link
Contributor

jrfastab commented Aug 1, 2022

I like the direction so I'll merge it I see at least a couple issues remaining but will merge this and then work out any fallout with @tpapagian in the next days.

@jrfastab jrfastab merged commit 3df4024 into main Aug 1, 2022
@jrfastab jrfastab deleted the pr/willfindlay/unify-execcache branch August 1, 2022 19:26
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.

None yet

2 participants