Skip to content
Snippets Groups Projects
Commit f3795e62 authored by OZGCloud's avatar OZGCloud
Browse files

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

parent 2ebfd84c
Branches
Tags
No related merge requests found
...@@ -71,6 +71,14 @@ spec: ...@@ -71,6 +71,14 @@ spec:
ports: ports:
- port: 9090 - port: 9090
protocol: TCP protocol: TCP
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
{{- end }} {{- end }}
{{- end }} {{- end }}
\ No newline at end of file
...@@ -126,7 +126,7 @@ tests: ...@@ -126,7 +126,7 @@ tests:
count: 1 count: 1
- it: should add zufi rule when zufi-routing is enabled - it: should add zufi rules when zufi-routing is enabled
set: set:
networkPolicy: networkPolicy:
dnsServerNamespace: test-dns-server-namespace dnsServerNamespace: test-dns-server-namespace
...@@ -148,6 +148,17 @@ tests: ...@@ -148,6 +148,17 @@ tests:
ports: ports:
- port: 9090 - port: 9090
protocol: TCP 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 - it: should throw error when zufi is enabled but zufi namespace not set
set: set:
...@@ -177,3 +188,14 @@ tests: ...@@ -177,3 +188,14 @@ tests:
podSelector: podSelector:
matchLabels: matchLabels:
component: zufi-server 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: ...@@ -78,6 +78,14 @@ spec:
ports: ports:
- port: 9090 - port: 9090
protocol: TCP protocol: TCP
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
component: vorgang-manager
ports:
- port: 9090
protocol: TCP
{{- end }} {{- end }}
{{- with (.Values.networkPolicy).additionalEgressConfigLocal }} {{- with (.Values.networkPolicy).additionalEgressConfigLocal }}
......
...@@ -164,7 +164,7 @@ tests: ...@@ -164,7 +164,7 @@ tests:
- hasDocuments: - hasDocuments:
count: 1 count: 1
- it: should add zufi rule when zufi-routing is enabled - it: should add zufi rules when zufi-routing is enabled
set: set:
networkPolicy: networkPolicy:
dnsServerNamespace: test-dns-server-namespace dnsServerNamespace: test-dns-server-namespace
...@@ -186,6 +186,17 @@ tests: ...@@ -186,6 +186,17 @@ tests:
ports: ports:
- port: 9090 - port: 9090
protocol: TCP 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 - it: should throw error when zufi is enabled but zufi namespace not set
set: set:
...@@ -215,3 +226,14 @@ tests: ...@@ -215,3 +226,14 @@ tests:
podSelector: podSelector:
matchLabels: matchLabels:
component: zufi-server 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