Skip to content

Commit

Permalink
Merge pull request #969 from spidernet-io/fix/incorrect_policy_reassi…
Browse files Browse the repository at this point in the history
…gnment_caused_by_egt

fix: incorrect policy reassignment caused by egt
  • Loading branch information
weizhoublue authored Nov 16, 2023
2 parents 3575cba + ef6f5b9 commit bbe1fc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/egressgateway/egress_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ func (r egnReconciler) reconcileEGT(ctx context.Context, req reconcile.Request,
} else {
for _, node := range egw.Status.NodeList {
if node.Name == egt.Name {
for _, node := range egw.Status.NodeList {
perNodeMap[node.Name] = node
}

if node.Status != string(egress.EgressTunnelReady) {
perNodeMap[node.Name] = egress.EgressIPStatus{Name: node.Name, Eips: node.Eips, Status: string(egress.EgressTunnelReady)}

Expand Down

0 comments on commit bbe1fc4

Please sign in to comment.