Skip to content

Conversation

frobware
Copy link

@frobware frobware commented Aug 5, 2025

Problem

BPFman operator panics on OpenShift when deployed via OperatorHub. The controller crashes trying to load ./config/bpfman-deployment/metrics-proxy-daemonset.yaml which doesn't exist in the container.

Cause

When metrics proxy support was added in 63cde58, the regular Containerfile was updated to copy the new config file but the OpenShift-specific Containerfile was missed. This means:

  • Upstream builds work fine
  • OpenShift builds are missing the file
  • Runtime panic when controller tries to load it

Fix

Add the missing COPY line to the OpenShift Containerfile to match what's already in the regular one.

Add missing COPY instruction for metrics-proxy-daemonset.yaml to the
OpenShift-specific Containerfile. This resolves operator panics that
occur when the bpfman-operator attempts to load the metrics proxy
daemonset configuration file at runtime but cannot find it in the
container filesystem.

The metrics proxy functionality was added in commit 63cde58 but the
OpenShift Containerfile was not updated to include the necessary file
copy instruction, whilst the regular Containerfile was properly
updated.

This ensures parity between the two build processes and prevents
runtime failures when deploying the operator via OperatorHub on
OpenShift clusters.
Copy link

openshift-ci bot commented Aug 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: frobware

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 5, 2025
@frobware
Copy link
Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 11, 2025
@frobware
Copy link
Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 26, 2025
@frobware
Copy link
Author

/test all

Copy link

openshift-ci bot commented Aug 26, 2025

@frobware: all tests passed!

Full PR test history. Your PR dashboard.

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.

@frobware frobware merged commit aeb1c4d into openshift:main Sep 3, 2025
6 of 7 checks passed
@frobware frobware deleted the fix-openshift-containerfile-metrics-proxy branch September 3, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant