From 5ea577e4240e11c45baf67bde960da293ef87985 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Sat, 4 Jan 2025 23:46:38 +0900 Subject: [PATCH] loxilb-io/loxilb#877 egress support - fixed fw config --- pkg/agent/manager/egress/egress.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/agent/manager/egress/egress.go b/pkg/agent/manager/egress/egress.go index da21db4..11d8001 100644 --- a/pkg/agent/manager/egress/egress.go +++ b/pkg/agent/manager/egress/egress.go @@ -148,6 +148,7 @@ func (m *Manager) WaitForLoxiEgressCRDCreation(stopCh <-chan struct{}) { } func (m *Manager) Start(informer egressCRDinformers.SharedInformerFactory, stopCh <-chan struct{}) { + klog.Infof("Starting %s", mgrName) m.WaitForLoxiEgressCRDCreation(stopCh) informer.Start(stopCh) @@ -230,7 +231,7 @@ func (m *Manager) makeLoxiFirewallModel(egress *crdv1.Egress) []*api.FwRuleMod { for _, address := range egress.Spec.Addresses { newFwModel := &api.FwRuleMod{ Rule: api.FwRuleArg{ - SrcIP: address, + SrcIP: address + "/32", }, Opts: api.FwOptArg{ DoSnat: true,