From a5fedd0c1bda1445c6fd5ef90411f6084b0da1fe Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 9 Feb 2024 09:05:16 +0100 Subject: [PATCH] network policy add ssh port forward port --- xta-adapter/src/main/helm/templates/network_policy.yaml | 2 ++ xta-adapter/src/test/helm/network_policy_test.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xta-adapter/src/main/helm/templates/network_policy.yaml b/xta-adapter/src/main/helm/templates/network_policy.yaml index af39de580..f8261b088 100644 --- a/xta-adapter/src/main/helm/templates/network_policy.yaml +++ b/xta-adapter/src/main/helm/templates/network_policy.yaml @@ -64,6 +64,8 @@ spec: protocol: TCP - port: 80 protocol: TCP + - port: 9000 + protocol: TCP {{- with (.Values.networkPolicy).additionalEgressConfig }} {{ toYaml . | indent 2 }} {{- end }} diff --git a/xta-adapter/src/test/helm/network_policy_test.yaml b/xta-adapter/src/test/helm/network_policy_test.yaml index 9ef79112e..62eac6b1a 100644 --- a/xta-adapter/src/test/helm/network_policy_test.yaml +++ b/xta-adapter/src/test/helm/network_policy_test.yaml @@ -86,6 +86,8 @@ tests: protocol: TCP - port: 80 protocol: TCP + - port: 9000 + protocol: TCP - it: add egress rules by values set: -- GitLab