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

OZG-6354 zentraler eingang add network policy

parent 818178db
Branches
Tags
No related merge requests found
...@@ -58,6 +58,14 @@ spec: ...@@ -58,6 +58,14 @@ spec:
component: antragsraum-server component: antragsraum-server
{{- end }} {{- end }}
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{ (.Values.ozgcloud).zentralerEingang.namespace }}
ports:
- protocol: TCP
port: 9090
{{- with (.Values.networkPolicy).additionalIngressConfigLocal }} {{- with (.Values.networkPolicy).additionalIngressConfigLocal }}
{{ toYaml . | indent 2 }} {{ toYaml . | indent 2 }}
{{- end }} {{- end }}
......
...@@ -62,3 +62,7 @@ zufiManager: ...@@ -62,3 +62,7 @@ zufiManager:
elasticsearch: elasticsearch:
certificateSecretName: elasticsearch-certificate certificateSecretName: elasticsearch-certificate
ozgcloud:
zentralerEingang:
namespace: zentraler-eingang
\ No newline at end of file
...@@ -158,6 +158,41 @@ tests: ...@@ -158,6 +158,41 @@ tests:
- failedTemplate: - failedTemplate:
errorMessage: ozgcloud.antragraum.namespace must be set if antragraum is enabled errorMessage: ozgcloud.antragraum.namespace must be set if antragraum is enabled
- it: should add default ingress rule for zentraler-eingang
set:
networkPolicy:
dnsServerNamespace: test-dns-namespace
asserts:
- contains:
path: spec.ingress
content:
from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: zentraler-eingang
ports:
- protocol: TCP
port: 9090
- it: should add ingress rule for zentraler-eingang
set:
networkPolicy:
dnsServerNamespace: test-dns-namespace
ozgcloud:
zentralerEingang:
namespace: custom-namespace
asserts:
- contains:
path: spec.ingress
content:
from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: custom-namespace
ports:
- protocol: TCP
port: 9090
- it: should add egress rule to elasticsearch - it: should add egress rule to elasticsearch
set: set:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment