-
Notifications
You must be signed in to change notification settings - Fork 60
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
new(pkg): use driverkit local
build processor instead of implementing drivers build
#356
Conversation
Note: pulling in latest driverkit breaks build because of the usage of:
in it for non-linux builds. |
Chose to follow this way: falcosecurity/driverkit#307 EDIT: bumped driverkit to that PR. |
b47c8f2
to
770dc86
Compare
/reopen |
@FedeDP: Reopened this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/milestone v0.8.0 |
770dc86
to
4c20d62
Compare
Rebased on top of master; moreover:
Only question remaining: driverkit uses
ie: by setting an io discarder slog as default slog instance that gets inherited by driverkit.
this way, the |
2031ef5
to
c7fd29a
Compare
Another TODO:
|
I will bump this once:
are merged; also i need to make a new release for driverkit once falcosecurity/driverkit#324 is merged. |
local
build processor instead of implementing drivers buildlocal
build processor instead of implementing drivers build
c705878
to
3677f09
Compare
3677f09
to
9f82dae
Compare
Bumped to driverkit v0.19.0. |
#550 is the first step to fix the build; we will then need to port the changes to falcosecurity/driverkit#342 and tag driverkit v0.19.1. We should be finally fine then. |
…der logic. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
9f82dae
to
8d57c21
Compare
This fixes the build. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1e3fac8
to
f65d4bd
Compare
local
build processor instead of implementing drivers buildlocal
build processor instead of implementing drivers build
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.
/lgtm
I left a suggestion.
This was needed because of a cross-deps build issue because of versions mismatches. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
86c801d
to
90c4dbf
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alacuku, FedeDP 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 |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area library
What this PR does / why we need it:
Driverkit v0.16.0 added a new
local
build processor: falcosecurity/driverkit#306.Making use of it, we can drop all the custom logic for drivers build.
Which issue(s) this PR fixes:
Refs #327
Fixes #
Special notes for your reviewer:
TODO:
when dkms build fails, we need some way to get the error, like accessing /var/lib/dkms... log. This is what we currently do in falcoctl main and we should retain the behavior-> this is now done by driverkit itself: https://github.com/falcosecurity/driverkit/pull/342/fileswhen build fails, we should print the output at warn/error level like falcoctl does today (eg: https://github.com/falcosecurity/falcoctl/blob/main/pkg/driver/type/bpf.go#L101)-> this is now done by driverkit itself: https://github.com/falcosecurity/driverkit/pull/342/filescapture-> no more needed since driverkit itself now uses falcoctlslog
log output (used by driverkit) within our own log level and writerpkg/output
Printer as logger: new(cmd,pkg,docs,docgen,validate): switched fromslog
go library to rich-text falcoctl log library driverkit#333Also, most of the lines "added" are from go.sum.