fix(collector): only declare hostPath volumes when needed (LOG-9713) - #3385
Conversation
Move hostPath volume declarations for audit, journal, OVN, and API server logs inside the same input-source conditions that already control the volumeMounts. This prevents unnecessary hostPath access on collectors Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
PR Summary by Qodofix(collector): gate hostPath volumes on enabled inputs (LOG-9713)
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTo customize comments, go to the Qodo configuration screen, or learn more in the docs. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcantrill, vparfonov 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 |
|
@vparfonov: all tests passed! 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. |
f313863
into
openshift:release-6.6
Description
Only declare hostPath volumes when their input sources are configured.
The collector pod spec unconditionally declares
hostPathvolumes foraudit API,journalandOVNlogs even when those inputs are not enabled.This fix moves the volume declarations inside the same input-source conditions that control the
volumeMounts, so app-only collectors don't declare unnecessaryhostPathaccess./cc @Clee2691
/assign @jcantrill
Links