From 455b8ca7814e7811f2aca20bdf4a56c5e4182e1b Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 20 Mar 2024 13:25:20 +0100 Subject: [PATCH] OZG-5238 Test mognodb health check --- src/main/helm/templates/network_policy.yaml | 16 ++++++++-------- src/test/helm/network_policy_test.yaml | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/helm/templates/network_policy.yaml b/src/main/helm/templates/network_policy.yaml index 0b04539f..b8c86d9c 100644 --- a/src/main/helm/templates/network_policy.yaml +++ b/src/main/helm/templates/network_policy.yaml @@ -18,16 +18,16 @@ spec: {{ toYaml . | indent 2 }} {{- end }} egress: - - to: - - podSelector: - matchLabels: - component: ozgcloud-mongodb - ports: - - port: 27017 - protocol: TCP + # - to: + # - podSelector: + # matchLabels: + # component: ozgcloud-mongodb + # ports: + # - port: 27017 + # protocol: TCP # public keycloak ip - to: - - ipBlock: + - ipBlock: cidr: {{ required "networkPolicy.ssoPublicIp must be set" (.Values.networkPolicy).ssoPublicIp }} - to: - namespaceSelector: diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml index 48a5811f..fa732251 100644 --- a/src/test/helm/network_policy_test.yaml +++ b/src/test/helm/network_policy_test.yaml @@ -67,13 +67,13 @@ tests: - ports: - port: 8080 egress: - - to: - - podSelector: - matchLabels: - component: ozgcloud-mongodb - ports: - - port: 27017 - protocol: TCP + # - to: + # - podSelector: + # matchLabels: + # component: ozgcloud-mongodb + # ports: + # - port: 27017 + # protocol: TCP # public keycloak ip - to: - ipBlock: -- GitLab