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

fix(plugin): match erase/add_entry behavior with libs #33

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

gnosek
Copy link
Collaborator

@gnosek gnosek commented Dec 16, 2024

In the built-in libs tables, erasing a nonexistent entry is an error, while adding an entry that overwrites an already existing one is fine.

Since there's no explicit spec for this, AFAICT, let's align our tables to that behavior as well.

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area ci

/area event

/area event_derive

/area plugin

/area plugin_api

/area plugin_derive

/area plugin_tests

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

In the built-in libs tables, erasing a nonexistent entry is an error,
while adding an entry that overwrites an already existing one is fine.

Since there's no explicit spec for this, AFAICT, let's align our tables
to that behavior as well.

Signed-off-by: Grzegorz Nosek <[email protected]>
@poiana
Copy link

poiana commented Dec 16, 2024

LGTM label has been added.

Git tree hash: 1a0b47367d1b686c2d93222eb6c2021d27975db6

@poiana
Copy link

poiana commented Dec 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gnosek, mrgian

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 a9bf833 into falcosecurity:main Dec 16, 2024
5 checks passed
@gnosek gnosek deleted the table-remove-nonexistent-entry branch December 16, 2024 12:12
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