-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connectivity: Split allow-all test to test allow-all-except-world
In the Cilium datapath, the identity "world" is a special case. If traffic cannot be identified, then the datapath falls back to assigning it as "world". Having only "allow-all" in the connectivity test will mask failures in which we have datapath bugs that incorrectly assign traffic as "world", but the traffic is still allowed. One such case is cilium/cilium#17000. This commit splits up the "allow-all" test into two, which now does "allow-all" as well as "allow-all-except-world", where non-world traffic is *not* allowed. This should cover the datapath special case. Signed-off-by: Chris Tarazi <chris@isovalent.com>
- Loading branch information
1 parent
687fa48
commit 68b830c
Showing
2 changed files
with
48 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
namespace: cilium-test | ||
name: allow-all-except-world | ||
spec: | ||
endpointSelector: {} | ||
egress: | ||
- toEntities: | ||
- host | ||
- remote-node | ||
- cluster | ||
- init | ||
- health | ||
- unmanaged | ||
ingress: | ||
- fromEntities: | ||
- host | ||
- remote-node | ||
- cluster | ||
- init | ||
- health | ||
- unmanaged |
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