Properly check for firewallGroup in same namespace #33

Merged
vegard merged 1 commits from feature/properly-handle-firewallgroups-in-same-namespace into main 2025-06-28 23:07:06 +00:00

View File

@@ -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
}