Skip to content

Commit

Permalink
loxilb-io/loxilb#877 egress support - fixed fw config
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Jan 4, 2025
1 parent 67201a6 commit 5ea577e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/agent/manager/egress/egress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5ea577e

Please sign in to comment.