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

Merge pull request 'OZG-6732 update netpol' (#2) from OZG-6732 into master

parents b020e0bf 08933a35
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ spec:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{(.Values.antragraum).namespace }}
kubernetes.io/metadata.name: {{(.Values.infoManager).namespace | default "info-manager"}}
podSelector:
matchLabels:
component: info-manager
......
......@@ -5,9 +5,3 @@ image:
repo: docker.ozg-sh.de
name: info-manager-proxy
tag: latest # [default: latest]
antragraum:
namespace: antragraum
\ No newline at end of file
......@@ -72,7 +72,7 @@ tests:
to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: antragraum
kubernetes.io/metadata.name: info-manager
podSelector:
matchLabels:
component: info-manager
......@@ -98,6 +98,26 @@ tests:
policyTypes:
- Ingress
- Egress
- it: should set info-manager namespace
set:
networkPolicy:
dnsServerNamespace: test-dns-namespace
infoManager:
namespace: info-manager2
asserts:
- contains:
path: spec.egress
content:
ports:
- port: 9090
protocol: TCP
to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: info-manager2
podSelector:
matchLabels:
component: info-manager
- it: add ingress rule by values local
set:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment