fix(discount-bandit): align template standards#658
Conversation
Standards Check (GR-079) — PASSEvery changed chart fully passes standards-check. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds ChangesNetworkPolicy extraEgress support
NOTES.txt reformat
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🟢 Security Scan:
|
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 91.21212% |
✅ Security posture acceptable.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
charts/discount-bandit/values.yaml (1)
338-339: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueClarify the distinction from
extraTo.
extraEgressaccepts full rule objects (to+ports) whereasextraToonly injects peer entries under a sharedto:block. A one-line comment clarifying this difference would help users pick the right field.✏️ Suggested comment tweak
- # -- Additional complete NetworkPolicy egress rules + # -- Additional complete NetworkPolicy egress rules (each entry needs its own `to`/`ports`, unlike extraTo which shares one `to:` block) extraEgress: []🤖 Prompt for 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. In `@charts/discount-bandit/values.yaml` around lines 338 - 339, Update the values documentation comment for extraEgress in the NetworkPolicy config to explicitly distinguish it from extraTo: note that extraEgress takes complete egress rule objects including both to and ports, while extraTo only adds peer entries under a shared to block. Keep the wording concise and place it next to the extraEgress field so users can choose the correct setting.
🤖 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.
Nitpick comments:
In `@charts/discount-bandit/values.yaml`:
- Around line 338-339: Update the values documentation comment for extraEgress
in the NetworkPolicy config to explicitly distinguish it from extraTo: note that
extraEgress takes complete egress rule objects including both to and ports,
while extraTo only adds peer entries under a shared to block. Keep the wording
concise and place it next to the extraEgress field so users can choose the
correct setting.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 68bc0279-c526-4e29-b6ab-4bf42d78a120
📒 Files selected for processing (5)
charts/discount-bandit/templates/NOTES.txtcharts/discount-bandit/templates/networkpolicy.yamlcharts/discount-bandit/tests/networkpolicy_test.yamlcharts/discount-bandit/values.schema.jsoncharts/discount-bandit/values.yaml
35008c0 to
27baa6b
Compare
|
Addressed the CodeRabbit review-summary nitpick for Change:
Validation:
Note: this CodeRabbit item was posted in the review summary/body, not as an active review thread, so there is no thread ID to reply to or resolve for it. |
Summary
networkPolicy.egress.extraEgresssupport while preserving existingextraTopeersValidation
Site PR: helmforgedev/site#337
Issue: #633
Summary by CodeRabbit
New Features
networkPolicy.egress.extraEgress, allowing custom full egress rules (includingto/ports) to be appended to the rendered NetworkPolicy.Documentation
Tests
extraEgressis correctly rendered in the NetworkPolicy output.Chores
values.schema.jsonand updatedvalues.yamlto document the newnetworkPolicyegress options.