Conversation
…0201) The LogFileMetricExporter container was started via /bin/bash -c "<binary> <args>", which requires bash in the image and inserts a shell as PID 1. Set the container command to the exporter binary directly with each flag as a discrete arg (no shell interpolation was relied upon). This removes the runtime dependency on bash, enabling a smaller/hardened base image (e.g. ubi-micro), and runs the exporter as PID 1 for correct signal handling. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@jcantrill: This pull request references LOG-10201 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.8.0" version, but no target version was set. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/cluster-logging-operator/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe container now runs the log-file metrics exporter directly. It passes the existing options as separate arguments, including TLS settings derived from the supplied profile. ChangesExporter invocation
Estimated code review effort: 2 (Simple) | ~8 minutes Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is established for this invocation change; it is mergeable subject to normal checks. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the change, rationale, implementation, testing, and Jira issue. It does not include the mandatory /cc reviewer assignment or /assign approver assignment, and it omits the template's Links section structure.
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
cc @vparfonov |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcantrill 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 |
|
@jcantrill: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
What
The LogFileMetricExporter (LFME) DaemonSet container was started via a bash wrapper:
This requires
bashto be present in the LFME image and inserts a shell into the process tree (bash runs as PID 1, the exporter as a child).This change sets the container command to the exporter binary directly, with each flag as a discrete arg (no shell interpolation was relied upon):
Why
bash, enabling a smaller/hardened base image (e.g.ubi-micro) and reducing attack surface.Testing
Verified on a cluster: the operator reconciles the DaemonSet to the direct-exec form; pods are Running with 0 restarts; PID 1 is the exporter binary (no bash); and the metrics endpoint returns HTTP 200 with data.
Jira
https://issues.redhat.com/browse/LOG-10201
🤖 Generated with Claude Code
Summary by CodeRabbit