CMP-4050: read json-enricher volume config dynamically#158
Conversation
…liation The json-enricher crashes with 'read-only file system' when custom auditLogPath is configured because the volume mount from ConfigMap was only read at operator startup, not during reconciliation. This fix reads the ConfigMap volume configuration during each reconciliation, ensuring volume mounts are applied correctly.
|
@Vincent056: This pull request references CMP-4050 which is a valid jira issue. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
…ock.yaml for package updates - Added `libbpf-devel` to the INSTALL_PKGS in Dockerfile.openshift to enable BPF support.
8ef0bcb to
996284f
Compare
Dockerfile.openshift
Outdated
| FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.24 as builder | ||
|
|
||
| RUN yum -y install git libseccomp-devel && yum clean all && \ | ||
| RUN yum -y install git libseccomp-devel libbpf-devel && yum clean all && \ |
There was a problem hiding this comment.
Need to fix this error in the operator image build step:
Error:
Problem: package elfutils-libelf-devel-0.193-1.el9.x86_64 from rhel-9-for-x86_64-appstream-rpms requires elfutils-libelf(x86-64) = 0.193-1.el9, but none of the providers can be installed
- cannot install both elfutils-libelf-0.193-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms and elfutils-libelf-0.190-2.el9.x86_64 from @System
- package libbpf-devel-2:1.5.0-2.el9.x86_64 from codeready-builder-for-rhel-9-x86_64-rpms requires pkgconfig(libelf), but none of the providers can be installed
- package elfutils-debuginfod-client-0.190-2.el9.x86_64 from @System requires elfutils-libelf(x86-64) = 0.190-2.el9, but none of the providers can be installed
- conflicting requests
- problem with installed package elfutils-debuginfod-client-0.190-2.el9.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
subprocess exited with status 1
subprocess exited with status 1
Error: building at STEP "RUN . /cachi2/cachi2.env && yum -y install git libseccomp-devel libbpf-devel && yum clean all && yum -y clean all && rm -rf /var/cache/yum": exit status 1
step-prepare-sboms :-
2026/01/16 16:19:09 Skipping step because a previous step failed
step-push :-
2026/01/16 16:19:08 Skipping step because a previous step failed
step-sbom-syft-generate :-
2026/01/16 16:19:09 Skipping step because a previous step failed
step-upload-sbom :-
2026/01/16 16:19:09 Skipping step because a previous step failed
…ebuginfod-client to the package installation for improved debugging support.
…k.yaml - Included acl, dbus, dbus-broker, dbus-common, elfutils-debuginfod-client, elfutils-default-yama-scope, elfutils-libs, json-c, kmod-libs, and systemd packages for both architectures.s
|
Pre-merge verification pass. Now, with the same procedure in https://issues.redhat.com/browse/CMP-4050, the spod pods is running: |
|
/label qe-approved |
|
@Vincent056: This pull request references CMP-4050 which is a valid jira issue. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
| @@ -4,76 +4,97 @@ lockfileVendor: redhat | |||
| arches: | |||
| - arch: ppc64le | |||
| packages: | |||
| - url: https://cdn.redhat.com/content/dist/rhel9/9/ppc64le/appstream/os/Packages/e/emacs-filesystem-27.2-13.el9_6.noarch.rpm | |||
There was a problem hiding this comment.
One question about the rpms.lock.yaml file, should we add rpms.in.yaml to get this file automatically updated by Konflux? Thanks.
There was a problem hiding this comment.
This can also be done in a separate PR.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Vincent056, yuumasato The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Should we forward port this to the main repo? |
|
Read json-enricher volume config dynamically during reconciliation
The json-enricher crashes with 'read-only file system' when custom auditLogPath is configured because the volume mount from ConfigMap was only read at operator startup, not during reconciliation.
This fix reads the ConfigMap volume configuration during each reconciliation, ensuring volume mounts are applied correctly.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
CMP-4050
-->
Does this PR have test?
N/A.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
None