Skip to content
Snippets Groups Projects
Commit 3ae624f4 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-6741 revert netpol changes

parent 274dfae2
No related branches found
No related tags found
1 merge request!1Ozg 6741 organisationseinheit link
......@@ -69,13 +69,6 @@ spec:
ports:
- port: 27017
protocol: TCP
- to:
- podSelector:
matchLabels:
component: alfa
ports:
- port: 8080
protocol: TCP
# public keycloak ip
- to:
- ipBlock:
......
......@@ -76,12 +76,12 @@ tests:
- ports:
- port: 8080
- from:
- namespaceSelector:
matchLabels:
name: "openshift-user-workload-monitoring"
- namespaceSelector:
matchLabels:
name: "openshift-user-workload-monitoring"
ports:
- protocol: TCP
port: 8081
- protocol: TCP
port: 8081
egress:
- to:
- namespaceSelector:
......@@ -100,13 +100,6 @@ tests:
ports:
- port: 27017
protocol: TCP
- to:
- podSelector:
matchLabels:
component: "alfa"
ports:
- port: 8080
protocol: TCP
# public keycloak ip
- to:
- ipBlock:
......@@ -131,18 +124,18 @@ tests:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-namespace-dns
additionalIngressConfigLocal:
- from:
- podSelector:
matchLabels:
component: client2
- from:
- podSelector:
matchLabels:
component: client2
asserts:
- contains:
path: spec.ingress
content:
from:
- podSelector:
matchLabels:
component: client2
- podSelector:
matchLabels:
component: client2
- it: set ingress monitoring namespace rule
set:
......@@ -155,30 +148,30 @@ tests:
path: spec.ingress
content:
from:
- namespaceSelector:
matchLabels:
name: "monitoring"
- namespaceSelector:
matchLabels:
name: "monitoring"
ports:
- protocol: TCP
port: 8081
- protocol: TCP
port: 8081
- it: add ingress rule by values global
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-namespace-dns
additionalIngressConfigGlobal:
- from:
- podSelector:
matchLabels:
component: client2
- from:
- podSelector:
matchLabels:
component: client2
asserts:
- contains:
path: spec.ingress
content:
from:
- podSelector:
matchLabels:
component: client2
- podSelector:
matchLabels:
component: client2
- it: add egress rules by values local
set:
......@@ -186,32 +179,32 @@ tests:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-dns-namespace
additionalEgressConfigLocal:
- to:
- ipBlock:
cidr: 1.2.3.4/32
- to:
- ipBlock:
cidr: 1.2.3.4/32
asserts:
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
- it: add egress rules by values Global
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-dns-namespace
additionalEgressConfigGlobal:
- to:
- ipBlock:
cidr: 1.2.3.4/32
- to:
- ipBlock:
cidr: 1.2.3.4/32
asserts:
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
- it: test network policy disabled
set:
......@@ -254,4 +247,4 @@ tests:
ssoPublicIp: 1.1.1.1
asserts:
- hasDocuments:
count: 1
count: 1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment