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: Rename killer to enforcer #2117

Merged
merged 7 commits into from
Feb 26, 2024
Merged

tetragon: Rename killer to enforcer #2117

merged 7 commits into from
Feb 26, 2024

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented Feb 16, 2024

rename all the killer stuff to enforcer, plus one simple sensors fix

TracingPolicy: Rename killer to enforcer. If using policies with killers, you need to replace killers with enforcers and action: NotifyKiller with NotifyEnforcer.

@olsajiri olsajiri added the release-note/minor This PR introduces a minor user-visible change label Feb 16, 2024
Copy link

netlify bot commented Feb 16, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 8b1a7ab
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/65d856a88ca20c0008f9d512
😎 Deploy Preview https://deploy-preview-2117--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@olsajiri olsajiri changed the title Pr/olsajiri/enforcer tetragon: Rename killer to enforcer Feb 16, 2024
@olsajiri olsajiri force-pushed the pr/olsajiri/enforcer branch 3 times, most recently from c21825b to 8b1a7ab Compare February 23, 2024 08:26
@olsajiri olsajiri marked this pull request as ready for review February 23, 2024 08:33
@olsajiri olsajiri requested a review from a team as a code owner February 23, 2024 08:33
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

Thanks!

if err := col.unload(); err != nil {
errs = errors.Join(errs, err)
}
col.destroy()
Copy link
Contributor

Choose a reason for hiding this comment

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

CC: @mtardy

Copy link
Member

Choose a reason for hiding this comment

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

yep indeed this is a miss on my part thanks. The destroy hook was added in contrast to the unload one that was used when enabling/disabling vs removing completely the sensor. Allowing us to clean up stuff only when it's really removed and not only disabled.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good. Can you please ACK the PR if you agree with the change?

Copy link
Member

Choose a reason for hiding this comment

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

Too late but yes I agreed with the change

The [0] commit added sensor's destroy hook and changed kprobe logic
to cleanup genericKprobeTable in there. We also need to change
removeAllSensors to do destroy instead of unload so the kprobe hook
is executed.

[0] 70e4fcd ("pkg/sensors: cleanup kprobe entry from table on destroy")

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Renaming NOTIFYKILLER to NOTIFYENFORCER action as a first step
of the whole rename, so we have schema changes separated.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Renaming killer bpf sensor to enforcer including the
file object names.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Renaming killer spec to enforcer to have the spec
changes separated.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Renaming killer go code to enforcer.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Renaming killer go objects to enforcer.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Renaming killer-tester to enforcer-tester.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
@olsajiri olsajiri merged commit aff1151 into main Feb 26, 2024
40 checks passed
@olsajiri olsajiri deleted the pr/olsajiri/enforcer branch February 26, 2024 09:00
@lambdanis
Copy link
Contributor

This PR contains a breaking change to a CRD, so I labeled it as such. @olsajiri could you write in the release note which fields changed?

@lambdanis lambdanis removed the release-note/minor This PR introduces a minor user-visible change label Apr 26, 2024
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.

4 participants