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

refactor(userspace/libsinsp)!: deprecate gen_event class family #1659

Merged
merged 6 commits into from
Feb 1, 2024

Conversation

jasondellaluce
Copy link
Contributor

What type of PR is this?

/kind cleanup

/kind design

Any specific area of the project related to this PR?

/area libsinsp

Does this PR require a change in the driver versions?

What this PR does / why we need it:

Back in the days, when we used to implement support to k8s audit logs from within Falco's core code, the libs codebase operated a refactor of the basic classes of libsinsp (i.e. event, filter, filter checks, formatter, and factories) that consisted in extracting base interfaces for all of them. Those interfaces had the gen_event prefix and used to be extended by both the regular libsinsp components and the Falco's C++ k8s audit detection implementation.

At current times, k8s audit support has been ported to the plugin system about one year and a half ago. The purpose of these classes is now missing, and just create degrees of ambiguity and code duplication. This PR aims to do a big cleanup by going have to have one single definition for all the duplicated sinsp constructs.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@jasondellaluce jasondellaluce force-pushed the refactor/deprecate-gen-event-classes branch from 1be9eb6 to a967fcf Compare January 31, 2024 10:14
@FedeDP
Copy link
Contributor

FedeDP commented Jan 31, 2024

/milestone 0.15.0

@poiana poiana added this to the 0.15.0 milestone Jan 31, 2024
Copy link
Member

@Andreagit97 Andreagit97 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 for this!
/approve

@poiana
Copy link
Contributor

poiana commented Feb 1, 2024

LGTM label has been added.

Git tree hash: b3238a3887e6e248120d314e62ecda5289f89e70

@poiana
Copy link
Contributor

poiana commented Feb 1, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, jasondellaluce, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Andreagit97,jasondellaluce,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 93a04bb into master Feb 1, 2024
34 checks passed
@poiana poiana deleted the refactor/deprecate-gen-event-classes branch February 1, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants