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

Merge pull request 'ozg-6647-network-policy-for-scraper' (#757) from...

Merge pull request 'ozg-6647-network-policy-for-scraper' (#757) from ozg-6647-network-policy-for-scraper into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/alfa/pulls/757


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents afb777fe c2b34a1d
Branches
Tags
No related merge requests found
......@@ -14,6 +14,13 @@ spec:
ingress:
- ports:
- port: 8080
- from:
- namespaceSelector:
matchLabels:
name: {{ (.Values.networkPolicy).monitoringNamespace | default "openshift-user-workload-monitoring" }}
ports:
- protocol: TCP
port: 8081
{{- with (.Values.networkPolicy).additionalIngressConfigLocal }}
{{ toYaml . | indent 2 }}
{{- end }}
......
......@@ -76,6 +76,13 @@ tests:
ingress:
- ports:
- port: 8080
- from:
- namespaceSelector:
matchLabels:
name: openshift-user-workload-monitoring
ports:
- port: 8081
protocol: TCP
egress:
- to:
- podSelector:
......@@ -260,3 +267,20 @@ tests:
asserts:
- failedTemplate:
errorMessage: zufiManager.namespace must be set if zufiManager server is enabled
- it: should set monitoring namesapce
set:
networkPolicy:
ssoPublicIp: 1.1.1.1
dnsServerNamespace: test-dns-server-namespace
monitoringNamespace: test-monitoring
asserts:
- contains:
path: spec.ingress
content:
from:
- namespaceSelector:
matchLabels:
name: test-monitoring
ports:
- protocol: TCP
port: 8081
\ 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