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

sensor cleanups #381

Merged
merged 6 commits into from
Sep 12, 2022
Merged

sensor cleanups #381

merged 6 commits into from
Sep 12, 2022

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Sep 2, 2022

Please see commits

@kkourt kkourt requested a review from a team as a code owner September 2, 2022 14:58
@kkourt kkourt requested review from sharlns and olsajiri September 2, 2022 14:58
@kkourt kkourt marked this pull request as draft September 2, 2022 14:59
@kkourt kkourt force-pushed the pr/kkourt/sensor-cleanups branch 2 times, most recently from ede5786 to 8e67502 Compare September 2, 2022 15:54
@kkourt kkourt marked this pull request as ready for review September 2, 2022 16:09
@kkourt kkourt force-pushed the pr/kkourt/sensor-cleanups branch from 8e67502 to 14a47e7 Compare September 5, 2022 07:53
This is hidden flag added for development/testing, but it is not used
anymore. Remove it.

Signed-off-by: Kornilios Kourtis <[email protected]>
This was a hidden flag added for development and testing, but it is not
used anymore. Remove it and along all the code that was supporting it.

Signed-off-by: Kornilios Kourtis <[email protected]>
First, remove pkg/sensors/config. Instead, use
GetMergedSensorFromParserPolicy so that we can have a proper name in the
sensor (the one from the tracing policy).

Based on above change, clean up sensor initialization in tests an in
agent main.

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/sensor-cleanups branch from 14a47e7 to 940ed55 Compare September 12, 2022 14:22
Copy link
Contributor

@willfindlay willfindlay left a comment

Choose a reason for hiding this comment

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

LGTM once @kevsecurity's comment is addressed.

We have been using the cilium/ebpf reader for quite some time now. Let's
remove the dual implementation and only keep the new version.

Signed-off-by: Kornilios Kourtis <[email protected]>
No need to pass the base sensor as argument. Just get it once from the
appropriate function.

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/sensor-cleanups branch from 940ed55 to d729849 Compare September 12, 2022 14:53
Copy link
Contributor

@willfindlay willfindlay left a comment

Choose a reason for hiding this comment

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

Looks good!

@kkourt kkourt merged commit 2dc54da into main Sep 12, 2022
@kkourt kkourt deleted the pr/kkourt/sensor-cleanups branch September 12, 2022 15:59
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.

5 participants