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

Automatic drivers cleanup #169

Merged
merged 6 commits into from
Sep 8, 2020
Merged

Automatic drivers cleanup #169

merged 6 commits into from
Sep 8, 2020

Conversation

leodido
Copy link
Member

@leodido leodido commented Sep 2, 2020

This PR introduces:

  • a script into 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 input
  • a make command that calls the above script specifying the bintray secret and passes to it the driver versions currently in the driverkit/config directory
  • adds to the CI a job (drivers/cleanup) that puts all the pieces together and runs on every merge into master

@leodido leodido changed the title Drivers cleanup Automatic drivers cleanup Sep 2, 2020
@poiana poiana added the size/L label Sep 2, 2020
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
Copy link
Member Author

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?

@leodido
Copy link
Member Author

leodido commented Sep 2, 2020

Until I do some other checks

/hold

@poiana
Copy link
Contributor

poiana commented Sep 7, 2020

LGTM label has been added.

Git tree hash: 2837646881d67da4b4bfd82e8d69066ca8062f62

@poiana poiana added the approved label Sep 7, 2020
@poiana
Copy link
Contributor

poiana commented Sep 7, 2020

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@leodido
Copy link
Member Author

leodido commented Sep 8, 2020

/hold cancel

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.

4 participants