telco-core: fix echoMode conditional in MetalLB BFD profile template - #879
telco-core: fix echoMode conditional in MetalLB BFD profile template#879bborbely-rh wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bborbely-rh 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 |
|
Hi @bborbely-rh. 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 Review limit reached
Next review available in: 35 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe BFDProfile Helm template now checks whether ChangesBFDProfile template behavior
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@telco-core/configuration/reference-crs-kube-compare/required/networking/metallb/bfd-profile.yaml`:
- Line 15: Update the conditional opening around hasKey .spec "echoMode" to
preserve the preceding newline by removing the left-trimming hyphen. Keep the
conditional behavior unchanged so explicit echoMode values, including false,
render as valid YAML rather than being absorbed into the preceding inline
comment.
🪄 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: Pro Plus
Run ID: f210d72f-affd-4bd7-bd67-e605c65e6749
📒 Files selected for processing (1)
telco-core/configuration/reference-crs-kube-compare/required/networking/metallb/bfd-profile.yaml
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@telco-core/configuration/reference-crs-kube-compare/required/networking/metallb/bfd-profile.yaml`:
- Around line 15-17: Update the closing conditional action in the echoMode block
to use {{ end }} instead of {{- end }}, preserving the newline after echoMode so
subsequent fields render as separate valid YAML lines.
🪄 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: Pro Plus
Run ID: 7c09166c-f3d9-486a-8c11-6656bd12458d
📒 Files selected for processing (1)
telco-core/configuration/reference-crs-kube-compare/required/networking/metallb/bfd-profile.yaml
Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
BFDProfile.spec.echoModeso an explicitfalseis not treated as unset (CNF-26007).hasKeyinstead of truthyif .spec.echoMode, matching the pattern already used for other optional booleans (e.g.useMultiNetworkPolicy).Test plan
echoMode: false(or API-defaultedfalse) no longer report a deviation against the reference templateechoModestill omit the field in the rendered referenceechoMode: truestill renderechoMode: trueMade with Cursor