diff --git a/xta-adapter/src/main/helm/templates/network_policy.yaml b/xta-adapter/src/main/helm/templates/network_policy.yaml index 9e04cc733f33663ffdc7f7c11f55f6f4908df8a0..b65e30f07ac0bc4277370f0879bc71c2c9c8adb5 100644 --- a/xta-adapter/src/main/helm/templates/network_policy.yaml +++ b/xta-adapter/src/main/helm/templates/network_policy.yaml @@ -34,13 +34,6 @@ spec: ozg-component: xta-adapter policyTypes: - Egress - ingress: -{{- with (.Values.networkPolicy).additionalIngressConfigLocal }} -{{ toYaml . | indent 2 }} -{{- end }} -{{- with (.Values.networkPolicy).additionalIngressConfigGlobal }} -{{ toYaml . | indent 2 }} -{{- end }} egress: - to: - podSelector: diff --git a/xta-adapter/src/test/helm/network_policy_test.yaml b/xta-adapter/src/test/helm/network_policy_test.yaml index e6f423c443563a94a0bf12e24362bc4e61a975ac..0c21953e21950822c2f58361fd9081a7f0405316 100644 --- a/xta-adapter/src/test/helm/network_policy_test.yaml +++ b/xta-adapter/src/test/helm/network_policy_test.yaml @@ -56,7 +56,6 @@ tests: ozg-component: xta-adapter policyTypes: - Egress - ingress: egress: - to: - podSelector: @@ -123,41 +122,6 @@ tests: - ipBlock: cidr: 1.2.3.4/32 - - it: add ingress rule by values local - set: - networkPolicy: - dnsServerNamespace: test-namespace-dns - additionalIngressConfigLocal: - - from: - - podSelector: - matchLabels: - component: client2 - asserts: - - contains: - path: spec.ingress - content: - from: - - podSelector: - matchLabels: - component: client2 - - it: add ingress rule by values global - set: - networkPolicy: - dnsServerNamespace: test-namespace-dns - additionalIngressConfigGlobal: - - from: - - podSelector: - matchLabels: - component: client2 - asserts: - - contains: - path: spec.ingress - content: - from: - - podSelector: - matchLabels: - component: client2 - - it: test network policy disabled set: networkPolicy: