Skip to content

Commit

Permalink
Fix create egress gateway when allocate policy empty
Browse files Browse the repository at this point in the history
Signed-off-by: lou-lan <[email protected]>
  • Loading branch information
lou-lan committed Mar 9, 2024
1 parent c57fde2 commit f81d18c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/egressgateway/egress_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,8 @@ func assignIP(from *egress.EgressGateway, req reconcile.Request, specEgressIP eg
Policies: []egress.Policy{{Name: req.Name, Namespace: req.Namespace}},
},
)
assignedIP.Node = node.Name
break
}
}
if assignedIP.Node == "" {
Expand Down

0 comments on commit f81d18c

Please sign in to comment.