From 9ae4aba03256780a327e14938bb99791b0a47b99 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Mon, 28 Oct 2024 15:58:08 +0100 Subject: [PATCH] OZG-6867: OZG-7036: Add Egress to Zufi --- src/main/helm/templates/network_policy.yaml | 7 +++++++ src/test/helm/network_policy_test.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/main/helm/templates/network_policy.yaml b/src/main/helm/templates/network_policy.yaml index 1c8c51e0..a8671729 100644 --- a/src/main/helm/templates/network_policy.yaml +++ b/src/main/helm/templates/network_policy.yaml @@ -28,6 +28,13 @@ spec: {{ toYaml . | indent 2 }} {{- end }} egress: + - to: + - podSelector: + matchLabels: + component: zufi-server + ports: + - port: 9090 + protocol: TCP - to: - podSelector: matchLabels: diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml index 427fafd4..ccd95833 100644 --- a/src/test/helm/network_policy_test.yaml +++ b/src/test/helm/network_policy_test.yaml @@ -83,6 +83,13 @@ tests: - protocol: TCP port: 8081 egress: + - to: + - podSelector: + matchLabels: + component: zufi-server + ports: + - port: 9090 + protocol: TCP - to: - podSelector: matchLabels: -- GitLab