Commit 730a69b
committed
.github: fix EKS native-routing CIDR lookup on pooled clusters
The egress-gateway-excluded-cidrs connectivity test asserts that traffic
matching an excluded CIDR reaches the external echo with the client node's
HostIP. That only holds when Cilium masquerades the pod's egress, which the
EKS workflow arranges deliberately: the external echo runs on a node in a
second availability zone, and the "Determine the native routing CIDR" step
narrows ipv4NativeRoutingCIDR to the first zone's subnet so that traffic to
the other zone is outside the non-masquerade CIDR and gets SNATed to HostIP.
That narrowing looked up the subnet by the alpha.eksctl.io/cluster-name tag
using steps.vars.outputs.cluster_name, the synthetic per-run name. On a
cluster taken from the pool the subnets are tagged with the real eksctl name
(steps.setup-cluster.outputs.cluster_name), so the filter matched nothing,
NATIVE_CIDR came back empty, and Cilium fell back to the whole VPC CIDR.
With the entire VPC excluded from masquerade the in-VPC echo target is
reached with the raw pod IP, and the test failed with a source IP that was
neither HostIP nor the egress gateway IP. The sibling nodegroup and external
target steps already use setup-cluster.outputs.cluster_name; only this one
was missed when the pool was introduced (cilium#45246).
Use the real cluster name here too, and fail the step loudly if the lookup
does not return exactly one CIDR rather than silently disabling masquerade,
so a future mismatch surfaces as a red step instead of a connectivity flake.
AIL:3
Signed-off-by: André Martins <andre@cilium.io>1 parent 2125392 commit 730a69b
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
505 | 513 | | |
506 | 514 | | |
507 | 515 | | |
| |||
0 commit comments