Skip to content

Commit

Permalink
Merge pull request #1249 from spidernet-io/fix/e2e2
Browse files Browse the repository at this point in the history
Fix create egress gateway when allocate policy empty
  • Loading branch information
weizhoublue authored Mar 11, 2024
2 parents c57fde2 + f81d18c commit ea08338
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 ea08338

Please sign in to comment.