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

Remove unneeded packages from final collector image #1864

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

Molter73
Copy link
Collaborator

@Molter73 Molter73 commented Sep 26, 2024

Description

Reasoning for removing each package:

  • kmod has not been needed since we stopped supporting kernel modules
  • libyaml and libarchive have vulnerabilities, are unused by the the collector binary and show no other package depend on them when querying with rpm.
  • Replaced xargs rpm -e with the method used in konflux.Dockerfile, so findutils is no longer needed either.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

  • Run tests in the main repo, ensuring collector still works properly in real operation environments.

@Molter73 Molter73 marked this pull request as ready for review September 30, 2024 15:54
@Molter73 Molter73 requested a review from a team as a code owner September 30, 2024 15:54
Reasoning for removing each package:
- kmod has not been needed since we stopped supporting kernel modules
- libyaml and libarchive have vulnerabilities, are unused by the
  the collector binary and show no other package depend on them when
  querying with rpm.
- Replaced xargs rpm -e with the method used in konflux.Dockerfile, so
  findutils is no longer needed either.
@Molter73 Molter73 force-pushed the mauro/remove-unneeded-dependencies branch from 98d6144 to 4ad134b Compare September 30, 2024 16:49
Copy link
Contributor

@ovalenti ovalenti left a comment

Choose a reason for hiding this comment

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

LGTM !

@Molter73 Molter73 merged commit 8b2d4e6 into master Oct 1, 2024
51 of 53 checks passed
@Molter73 Molter73 deleted the mauro/remove-unneeded-dependencies branch October 1, 2024 08:36
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.

2 participants