Allow mpls and vrf kernel modules in Worker and Control Plane files#730
Allow mpls and vrf kernel modules in Worker and Control Plane files#730csalomon1 wants to merge 0 commit intoopenshift-kni:mainfrom
Conversation
|
Hi @csalomon1. Thanks for your PR. I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughMachineConfig files for control-plane and worker kernel module loading now compute Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 55 minutes and 7 seconds.Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
telco-core/configuration/reference-crs-kube-compare/optional/other/control-plane-load-kernel-modules.yaml (1)
34-40: Keep the inline module list comments aligned with the generated fallback list.The comments above this block still stop at
nfnetlink_log, but Line 40 now also allowsmplsandvrf. In a templated payload like this, stale comments make future edits easier to get wrong.Suggested update
# nf_reject_ipv4 # nf_reject_ipv6 # nfnetlink_log + # mpls + # vrf {{- $userSource := "" }}As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@telco-core/configuration/reference-crs-kube-compare/optional/other/control-plane-load-kernel-modules.yaml` around lines 34 - 40, Update the inline comment that lists kernel modules so it matches the generated fallback list used in the source call to template "validateBase64List"; specifically ensure the human-readable comment above the block includes "mpls" and "vrf" alongside the existing modules (the block that sets $userSource and calls template "validateBase64List" with the list) so the comment and the actual fallback list stay in sync and avoid stale documentation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@telco-core/configuration/reference-crs-kube-compare/optional/other/control-plane-load-kernel-modules.yaml`:
- Around line 34-40: Update the inline comment that lists kernel modules so it
matches the generated fallback list used in the source call to template
"validateBase64List"; specifically ensure the human-readable comment above the
block includes "mpls" and "vrf" alongside the existing modules (the block that
sets $userSource and calls template "validateBase64List" with the list) so the
comment and the actual fallback list stay in sync and avoid stale documentation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: fcf0a826-eb6d-42be-a4de-cd93152cfa0b
📒 Files selected for processing (2)
telco-core/configuration/reference-crs-kube-compare/optional/other/control-plane-load-kernel-modules.yamltelco-core/configuration/reference-crs-kube-compare/optional/other/worker-load-kernel-modules.yaml
8098db6 to
fb49bf4
Compare
fb49bf4 to
d66eedf
Compare
d66eedf to
81f5431
Compare
ec39267 to
f652497
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@telco-core/configuration/reference-crs-kube-compare/optional/other/worker-load-kernel-modules.yaml`:
- Line 40: The fallback list passed to the template call validateBase64List (the
expression using source: {{ template "validateBase64List" (list $userSource
(list "ip_gre" "nf_tables" "nf_conntrack" "nft_ct" "nft_limit" "nft_log"
"nft_nat" "nft_chain_nat" "nf_reject_ipv4" "nf_reject_ipv6" "nfnetlink_log"))
}}) is missing the worker allowlist entries for mpls and vrf; update that inner
list to include "mpls" and "vrf" so the worker validateBase64List fallback
accepts those kernel modules.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: 44b89340-920e-4e44-b4b3-799f0c386a00
📒 Files selected for processing (2)
telco-core/configuration/reference-crs-kube-compare/optional/other/control-plane-load-kernel-modules.yamltelco-core/configuration/reference-crs-kube-compare/optional/other/worker-load-kernel-modules.yaml
243e792 to
f652497
Compare
f652497 to
80cdcad
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: csalomon1 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Updated base64-encoded allowed kernel modules in Worker and Control Plane files
(reference-crs-kube-compare) to include mpls and vrf as acceptable variations.
The changes were made by decoding the files, adding mpls and vrf to the allowed modules list, and encoding them back to Base64.
Ticket: https://redhat.atlassian.net/browse/CNF-21265