Compare commits
4 Commits
feature/cl
...
feature/pr
| Author | SHA1 | Date | |
|---|---|---|---|
| 834f52c015 | |||
| 9d43b517e6 | |||
| 2b38f08a1a | |||
| 3a63034e26 |
@@ -287,14 +287,14 @@ 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.
|
// 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 {
|
for _, dest_group := range firewallPolicy.Spec.Destination.FirewallGroups {
|
||||||
namespace := defaultNs
|
namespace := firewallPolicy.Namespace
|
||||||
if len(dest_group.Namespace) > 0 {
|
if len(dest_group.Namespace) > 0 {
|
||||||
namespace = dest_group.Namespace
|
namespace = dest_group.Namespace
|
||||||
}
|
}
|
||||||
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