-
Notifications
You must be signed in to change notification settings - Fork 379
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
Conversation
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
9c631e0
to
903b2dc
Compare
c21825b
to
8b1a7ab
Compare
There was a problem hiding this 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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC: @mtardy
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
8b1a7ab
to
2473217
Compare
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? |
rename all the killer stuff to enforcer, plus one simple sensors fix