Skip to content

Commit

Permalink
test: Use same policy names for policies with named ports
Browse files Browse the repository at this point in the history
Do not use distinct policy names for policies with named ports so that
they replace (and are replaced by) other policies (with the same name)
as expected when applying.

Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
  • Loading branch information
jrajahalme committed Apr 27, 2020
1 parent daeb859 commit a7a26ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/k8sT/manifests/l3-l4-policy-named-port.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
description: "L3-L4 policy with named l4 port"
metadata:
name: "l3-l4-policy-named-port"
name: "l3-l4-policy"
spec:
endpointSelector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion test/k8sT/manifests/l7-policy-named-port.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
description: "L7 policy with a named L4 port for getting started using Kubernetes guide"
metadata:
name: "l7-policy-with-named-port"
name: "l7-policy"
spec:
endpointSelector:
matchLabels:
Expand Down

0 comments on commit a7a26ad

Please sign in to comment.