api: raise LoadBalancerSourceRanges MaxItems from 64 to 512 #10708
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.48) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 524 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10708"
general
weight: 0.35
zirain
Raises the
MaxItemslimit onEnvoyProxy.spec.provider.kubernetes.envoyService.loadBalancerSourceRangesfrom 64 to 513.
#9818 introduced
+kubebuilder:validation:MaxItems=64. 64 is too low for real-world allow-lists(corporate egress ranges, partner/CDN ranges), and the upstream core
Service.spec.loadBalancerSourceRangeshas no limit at all.
Why 512:
per listener port. AWS caps security group rules at 1000 per network interface
(rules-per-SG × SGs-per-ENI ≤ 1000).
value that can still be satisfied on AWS.
constrain them.
Why this is safe for the CRD:
!has(self.loadBalancerSourceRanges) || self.type == 'LoadBalancer')doesn't iterate the list, so its cost is independent of
MaxItems.ENVTEST_K8S_VERSIONS.Compatibility: non-breaking. This only relaxes validation, so all existing resources remain valid.
Changes:
api/v1alpha1/shared_types.go:MaxItems=64→MaxItems=512test/cel-validation/envoyproxy_test.go: updated the too-many-items case (513 rejected)release-notes/current/other_changes/Which issue(s) this PR fixes:
Follow-up to #9818.
Fixes #10706
---
PR Checklist
<!--
Please tick the boxes below before requesting a review. PRs that leave required items unchecked may
be delayed or closed. Replace
[ ]with[x]to check a box. If an item does not apply, check itand add "N/A: <reason>".
-->
git commit -s). See DCO: Sign your work./api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.make generate gen-check,make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, butgen-check,lint, and coverage MUST pass.)release-notes/current/<section>/<pr-number>-<slug>.md(seerelease-notes/current/README.mdfor sections and naming). N/A if this PR does not contain non-trivial changes.make gen-checkand committed the result if API/helm charts/modules changed.release-notes/current/breaking_changes/.