-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add default deny test to ingress-and-egress-blocked
Signed-off-by: Matthias Bertschy <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
rules/ingress-and-egress-blocked/test/default-policy/expected.json
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 @@ | ||
[] |
10 changes: 10 additions & 0 deletions
10
rules/ingress-and-egress-blocked/test/default-policy/input/networkpolicy.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,10 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: default-deny-all | ||
namespace: my-ns | ||
spec: | ||
podSelector: {} | ||
policyTypes: | ||
- Ingress | ||
- Egress |
17 changes: 17 additions & 0 deletions
17
rules/ingress-and-egress-blocked/test/default-policy/input/pod.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,17 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: test | ||
namespace: my-ns | ||
spec: | ||
containers: | ||
- args: | ||
- server | ||
env: | ||
- name: BASE_HREF | ||
value: /argo/ | ||
image: test:latest | ||
name: test | ||
imagePullPolicy: Never | ||
- name : test2 | ||
image : test |