From 335fdc4b52118e4315d3acdc59c81ccc809d9fa2 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Fri, 13 Sep 2024 17:16:32 +0200
Subject: [PATCH] OZG-6513 update alfa-client netpol

---
 .../main/helm/templates/network_policy.yaml    |  9 ---------
 .../src/test/helm/network_policy_test.yaml     | 18 +-----------------
 2 files changed, 1 insertion(+), 26 deletions(-)

diff --git a/alfa-client/src/main/helm/templates/network_policy.yaml b/alfa-client/src/main/helm/templates/network_policy.yaml
index 3c7abcf42e..e46a3db9cd 100644
--- a/alfa-client/src/main/helm/templates/network_policy.yaml
+++ b/alfa-client/src/main/helm/templates/network_policy.yaml
@@ -21,15 +21,6 @@ spec:
 {{ toYaml . | indent 2 }}
 {{- end }}
   egress:
-  - to:
-    - namespaceSelector: 
-        matchLabels:
-          kubernetes.io/metadata.name: fachstelle
-      podSelector: 
-        matchLabels:
-          component: fachstelle-server
-    ports:
-      - port: 8080
   - to:
     - namespaceSelector:
         matchLabels:
diff --git a/alfa-client/src/test/helm/network_policy_test.yaml b/alfa-client/src/test/helm/network_policy_test.yaml
index 75d8eb5991..59135be4c5 100644
--- a/alfa-client/src/test/helm/network_policy_test.yaml
+++ b/alfa-client/src/test/helm/network_policy_test.yaml
@@ -55,23 +55,7 @@ tests:
             name: network-policy-alfa-client
             namespace: by-helm-test
 
-  - it: should add egress rule to fachstelle-server service
-    set:
-      networkPolicy:
-        dnsServerNamespace: kube-system
-    asserts:
-      - contains:
-          path: spec.egress
-          content:
-              to:
-              - namespaceSelector: 
-                  matchLabels:
-                    kubernetes.io/metadata.name: fachstelle
-                podSelector: 
-                  matchLabels:
-                    component: fachstelle-server
-              ports:
-              - port: 8080
+
 
   - it: should add egress rule to dns service
     set:
-- 
GitLab