diff --git a/src/main/helm/templates/network_policy.yaml b/src/main/helm/templates/network_policy.yaml index 0b04539f5f49f11190eeeddf9de4c0fb867e7fd9..b8c86d9c5e85f9b95de9106041511a370f766b22 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 48a5811fb8c081d3c32fbf9389e6a23fce3e80d7..fa732251215bec6dc98f849acee012ed1a94b16c 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: