Skip to content

Conversation

@Miciah
Copy link
Contributor

@Miciah Miciah commented Nov 11, 2025

When installing the haproxy-router image's package dependencies, specify --setopt=install_weak_deps=0 to avoid install weak dependencies.

In particular, this change avoids installing the rsyslog-logrotate package, which is a weak dependency of the rsyslog package. The rsyslog-logrotate package requires the logrotate package; the router does not need either of these packages. Installing these unnecessary packages enlarges the size and attack surface of the container image.

When installing the haproxy-router image's package dependencies, specify
--setopt=install_weak_deps=0 to avoid install weak dependencies.

In particular, this commit avoids installing the rsyslog-logrotate
package, which is a weak dependency of the rsyslog package.  The
rsyslog-logrotate package requires the logrotate package; the router
does not need either of these packages.  Installing these unnecessary
packages enlarges the size and attack surface of the container image.

* hack/Dockerfile.debug:
* images/router/haproxy/Dockerfile:
* images/router/haproxy/Dockerfile.ocp:
* images/router/haproxy/Dockerfile.rhel: Specify the
--setopt=install_weak_deps=0 option for yum install.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 11, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign thealisyed for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 11, 2025

@Miciah: all tests passed!

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@alebedev87
Copy link
Contributor

/assign

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