-
Notifications
You must be signed in to change notification settings - Fork 108
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
Automatic drivers cleanup #169
Conversation
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
3bcf912
to
0b01fb4
Compare
driverkit/utils/cleanup
Outdated
printf "%s\t%s\n" "$i" "${all[$i]}" | ||
if [[ ! " ${keep[*]}" =~ ${all[$i]} ]]; then | ||
printf " \tremoving..." | ||
JFROG_CLI_LOG_LEVEL=DEBUG jfrog bt vd --user "${user}" --key "${pass}" "falcosecurity/driver/kernel-module/${all[$i]}" --quiet |
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.
Here we could download (or directly move the driver) to S3 for archivation as per proposal in falcosecurity/falco#1375.
Waiting for feedback.
Should we block this task until we have S3?
Should we implement the archivation step in a second phase?
Until I do some other checks /hold |
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
LGTM label has been added. Git tree hash: 2837646881d67da4b4bfd82e8d69066ca8062f62
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fntlnz, 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 |
/hold cancel |
This PR introduces:
driverkit/utils
that (given the bintray secret plus a list of driver versions to keep) queries bintray API to obtain all the existing driver versions and filter them out by keeping only the two driver versions specified as inputdriverkit/config
directorydrivers/cleanup
) that puts all the pieces together and runs on every merge into master