Skip to content
Snippets Groups Projects
Commit 1fb9cb21 authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

OZG-6254 OZG-6484 pvog routing add network policy for vorgang-manager in other namespaces

parent 499fd8f8
Branches
Tags
No related merge requests found
......@@ -71,6 +71,14 @@ spec:
ports:
- port: 9090
protocol: TCP
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
{{- end }}
{{- end }}
\ No newline at end of file
......@@ -126,7 +126,7 @@ tests:
count: 1
- it: should add zufi rule when zufi-routing is enabled
- it: should add zufi rules when zufi-routing is enabled
set:
networkPolicy:
dnsServerNamespace: test-dns-server-namespace
......@@ -148,6 +148,17 @@ tests:
ports:
- port: 9090
protocol: TCP
- contains:
path: spec.egress
content:
to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
- it: should throw error when zufi is enabled but zufi namespace not set
set:
......@@ -177,3 +188,14 @@ tests:
podSelector:
matchLabels:
component: zufi-server
- notContains:
path: spec.egress
content:
to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
\ No newline at end of file
......@@ -78,6 +78,14 @@ spec:
ports:
- port: 9090
protocol: TCP
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
{{- end }}
{{- with (.Values.networkPolicy).additionalEgressConfigLocal }}
......
......@@ -164,7 +164,7 @@ tests:
- hasDocuments:
count: 1
- it: should add zufi rule when zufi-routing is enabled
- it: should add zufi rules when zufi-routing is enabled
set:
networkPolicy:
dnsServerNamespace: test-dns-server-namespace
......@@ -186,6 +186,17 @@ tests:
ports:
- port: 9090
protocol: TCP
- contains:
path: spec.egress
content:
to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
- it: should throw error when zufi is enabled but zufi namespace not set
set:
......@@ -215,3 +226,14 @@ tests:
podSelector:
matchLabels:
component: zufi-server
- notContains:
path: spec.egress
content:
to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment