-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Support for loadBalancerSourceRanges on the envoy service #2878
Conversation
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2878 +/- ##
==========================================
- Coverage 66.51% 64.52% -1.99%
==========================================
Files 161 121 -40
Lines 22673 21405 -1268
==========================================
- Hits 15080 13811 -1269
- Misses 6720 6723 +3
+ Partials 873 871 -2 ☔ View full report in Codecov by Sentry. |
Failing tests seem to be related to #2269. Any idea how to overcome this? |
@jaynis this API may make sense since the knob is specific to LB
|
/retest |
@@ -115,6 +115,12 @@ func validateService(spec *egv1a1.EnvoyProxySpec) []error { | |||
errs = append(errs, fmt.Errorf("allocateLoadBalancerNodePorts can only be set for %v type", egv1a1.ServiceTypeLoadBalancer)) | |||
} | |||
} | |||
if serviceType, serviceLoadBalancerSourceRanges := |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a IP Address check in here
/retest |
hey @jaynis still working on this one ? |
Sorry totally forgot about this one. What kind of IP address check do you have in mind there? |
something like
|
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
I have added a CEL validation rule to check whether all Any suggestions how to proceed here @arkodg? Should I simply remove the CEL validation again? |
yah should be fine to rm CEL you've already added logic inside the validate method |
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
This PR adds support for
loadBalancerSourceRanges
on the envoy service.loadBalancerSourceRanges
are used to specify firewall rules on the underlying load balancer of the kubernetes platform provider, if the provider supports this.