From 3a63034e2602467729970b09d20cf3d7ee012540 Mon Sep 17 00:00:00 2001 From: Vegard Engen Date: Sun, 29 Jun 2025 00:58:57 +0200 Subject: [PATCH] Properly check for firewallGroup in same namespace --- internal/controller/firewallpolicy_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/firewallpolicy_controller.go b/internal/controller/firewallpolicy_controller.go index b3565af..9b2b38f 100644 --- a/internal/controller/firewallpolicy_controller.go +++ b/internal/controller/firewallpolicy_controller.go @@ -285,7 +285,7 @@ func (r *FirewallPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Reque // This will be used when running through all firewall groups and servics known, to see if a rule should be added. for _, dest_group := range firewallPolicy.Spec.Destination.FirewallGroups { - namespace := defaultNs + namespace := firewallPolicy.Namespace if len(dest_group.Namespace) > 0 { namespace = dest_group.Namespace } -- 2.49.1