Handle services in same namespace if namespace is not specified
All checks were successful
Build project / build (push) Successful in 1m42s
All checks were successful
Build project / build (push) Successful in 1m42s
This commit is contained in:
@@ -294,7 +294,7 @@ func (r *FirewallPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Reque
|
|||||||
destination_groups[namespace+"/"+dest_group.Name] = struct{}{}
|
destination_groups[namespace+"/"+dest_group.Name] = struct{}{}
|
||||||
}
|
}
|
||||||
for _, dest_service := range firewallPolicy.Spec.Destination.Services {
|
for _, dest_service := range firewallPolicy.Spec.Destination.Services {
|
||||||
namespace := defaultNs
|
namespace := firewallPolicy.Namespace
|
||||||
if len(dest_service.Namespace) > 0 {
|
if len(dest_service.Namespace) > 0 {
|
||||||
namespace = dest_service.Namespace
|
namespace = dest_service.Namespace
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user