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(plugins): cleanup plugins, bump Go SDK version, and remove logging #39

Merged
merged 4 commits into from
Jan 13, 2022

Conversation

jasondellaluce
Copy link
Contributor

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area source-plugins

/area extractor-plugins

What this PR does / why we need it:

This PR cleans up the existing plugins as following:

  • Renaming the dummy_c source name from dummy to dummy_c. Source names need to generally be unique, and although dummy and dummy_c are similar, the events they generate are not equal at all.
  • Bump the Go SDK version
  • Refactored and uniformed init configuration reading in dummy and cloudtrail, also aiming to avoid state variable replication
  • Removing legacy debug logging, which caused a performance penalty in hot-paths even if the messages get discarded. They are also unused here and remained as legacy code. A SDK-native alternative solution, as described in Add internal logging system plugin-sdk-go#24, would be better for this purposes.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

refactor(plugins): cleanup plugins, bump Go SDK version, and remove logging

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
… uniqueness

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

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

/approve

@leogr
Copy link
Member

leogr commented Jan 13, 2022

/approve

@leogr
Copy link
Member

leogr commented Jan 13, 2022

/lgtm

@poiana
Copy link
Contributor

poiana commented Jan 13, 2022

LGTM label has been added.

Git tree hash: 76f74cb54803d0a8637addad20a27a7227d38e3a

@poiana
Copy link
Contributor

poiana commented Jan 13, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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:

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 c1469ed into falcosecurity:master Jan 13, 2022
@jasondellaluce jasondellaluce deleted the refactor/cleanup-plugins branch January 13, 2022 14:04
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.

3 participants