-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connectivity: add full egress gateway test suite
This commit reimplement the Ginkgo test suite for egress gateway as a connectivity test for the CLI. The changes are split in 2 test suites: * egress-gateway, which tests connectivity for pods matched by an egress gateway policy: pod to host, pod to service, pod to external IP, reply traffic for services and pods * egress-gateway-excluded-cidrs, which tests the excludedCIDRs property and ensure traffic matching an excluded CIDR does not get masqueraded with the egress IP Signed-off-by: Gilberto Bertin <[email protected]>
- Loading branch information
Showing
7 changed files
with
385 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
connectivity/manifests/egress-gateway-policy-excluded-cidrs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumEgressGatewayPolicy | ||
metadata: | ||
name: cegp-sample-excluded-cidrs | ||
spec: | ||
selectors: | ||
- podSelector: | ||
matchLabels: | ||
io.kubernetes.pod.namespace: cilium-test | ||
kind: client | ||
destinationCIDRs: | ||
- 0.0.0.0/0 | ||
excludedCIDRs: | ||
- NODE_WITHOUT_CILIUM_PLACEHOLDER/32 | ||
egressGateway: | ||
nodeSelector: | ||
matchLabels: | ||
kubernetes.io/hostname: NODE_NAME_PLACEHOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.