From c6beebea0a54ab9e4bdf0db856b3efca2ee14cc7 Mon Sep 17 00:00:00 2001 From: Nick Hudson Date: Tue, 20 Aug 2024 11:46:01 -0500 Subject: [PATCH] dont remove namespaceSelector --- tembo-operator/src/network_policies.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tembo-operator/src/network_policies.rs b/tembo-operator/src/network_policies.rs index 75dd6b69a..4958707f3 100644 --- a/tembo-operator/src/network_policies.rs +++ b/tembo-operator/src/network_policies.rs @@ -297,9 +297,21 @@ pub async fn reconcile_network_policies(client: Client, namespace: &str) -> Resu } ], "to": [ + { + "namespaceSelector": { + "matchLabels": { + "kubernetes.io/metadata.name": "tembo-ai" + } + }, + "podSelector": { + "matchLabels": { + "app.kubernetes.io/name": "tembo-ai-gateway" + } + } + }, { "ipBlock": { - "cidr": "10.0.0.0/8" + "cidr": "10.1.0.0/16" } } ]