diff --git a/src/main/helm/templates/network_policy.yaml b/src/main/helm/templates/network_policy.yaml index 9436a1d802cc07aa7ff986c93fa8de5e952d7d2d..3a2045292173271285a04bd1f440a249c2d4b321 100644 --- a/src/main/helm/templates/network_policy.yaml +++ b/src/main/helm/templates/network_policy.yaml @@ -68,6 +68,9 @@ spec: podSelector: matchLabels: component: zufi-server + ports: + - port: 9090 + protocol: TCP {{- end }} {{- end }} \ No newline at end of file diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml index 7ab7a66635a542de6b2a8e89af418c287c6d676d..94e663a873ed9d337f5daa395f1e153f2015354c 100644 --- a/src/test/helm/network_policy_test.yaml +++ b/src/test/helm/network_policy_test.yaml @@ -145,6 +145,9 @@ tests: podSelector: matchLabels: component: zufi-server + ports: + - port: 9090 + protocol: TCP - it: should throw error when zufi is enabled but zufi namespace not set set: diff --git a/xta-adapter/src/main/helm/templates/network_policy.yaml b/xta-adapter/src/main/helm/templates/network_policy.yaml index 32560c0a566f998ae158f3bee04130ffda2a3d2e..c1864c568f0a04671e1ae5a2c6cd7b8869a2194d 100644 --- a/xta-adapter/src/main/helm/templates/network_policy.yaml +++ b/xta-adapter/src/main/helm/templates/network_policy.yaml @@ -75,6 +75,9 @@ spec: podSelector: matchLabels: component: zufi-server + ports: + - port: 9090 + protocol: TCP {{- end }} {{- with (.Values.networkPolicy).additionalEgressConfigLocal }} diff --git a/xta-adapter/src/test/helm/network_policy_test.yaml b/xta-adapter/src/test/helm/network_policy_test.yaml index 4bfbb7c0cca3ba9e4c233baa32e7ef5cdc2a4570..290ac0f7080f2225f9c3e60cc53bcf9fbb940ef9 100644 --- a/xta-adapter/src/test/helm/network_policy_test.yaml +++ b/xta-adapter/src/test/helm/network_policy_test.yaml @@ -183,6 +183,9 @@ tests: podSelector: matchLabels: component: zufi-server + ports: + - port: 9090 + protocol: TCP - it: should throw error when zufi is enabled but zufi namespace not set set: