-
Notifications
You must be signed in to change notification settings - Fork 3.4k
datapath,daemon: Add check for loadBalancerSourceRanges #12841
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
Conversation
8f798c1
to
54f6bce
Compare
Coverage decreased (-0.03%) to 37.084% when pulling 8f798c1d9b6fea606b97d0ed0f11fc0712c7735b on pr/brb/lb-src-addr-v2 into b920dfd on master. |
Coverage decreased (-0.03%) to 37.094% when pulling 812a8ce978f7293167387156149a19fdd189df0a on pr/brb/lb-src-addr-v2 into 85600be on master. |
ba18582
to
b20152f
Compare
test-me-please |
b20152f
to
5ad5a2f
Compare
test-me-please |
5ad5a2f
to
d40abdf
Compare
test-me-please |
Currently, the test contains some sleeps for waiting until cilium-agents have updated their LB src range maps. In the future, it will be replaced by checking whether "cilium bpf source-list list" (TODO) contains relevant entries. Signed-off-by: Martynas Pumputis <m@lambda.lt>
9592f30
to
29dae25
Compare
test-me-please |
Wrt |
Thanks, created #13303 to track this. |
As suggested in cilium#12841, replace the hard-coded time.Sleep() with a peek into the SourceRanges map. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
This PR extends the kube-proxy replacement by adding a support for
LoadBalancer
service source range checks which:(https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#servicespec-v1-core)
TODO for an immediate follow-up:
cilium bpf source-range list
, add it tobugtool
and replacetime.Sleep()
in the extended integration test with it.Reviewable per commit.
Reported-by: John Watson johnw@planetscale.com (@dctrwatson)