datapath,daemon: Add check for loadBalancerSourceRanges#12841
datapath,daemon: Add check for loadBalancerSourceRanges#12841
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
LoadBalancerservice 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 tobugtooland replacetime.Sleep()in the extended integration test with it.Reviewable per commit.
Reported-by: John Watson johnw@planetscale.com (@dctrwatson)