Skip to content

Commit

Permalink
Remove wireguard workaround in kubeproxy handler
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
  • Loading branch information
tpantelis committed Jul 18, 2024
1 parent 8570094 commit 75df50b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/routeagent_driver/handlers/kubeproxy/endpoint_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ func (kp *SyncHandler) LocalEndpointCreated(endpoint *submV1.Endpoint) error {
if err != nil {
return errors.Wrap(err, "error while reconciling routes")
}
} else if kp.localCableDriver == "wireguard" {
// We are on Gateway node and cable is wireguard.
// After GW pod failure, the wireguard network interface (named 'submariner')
// is created with a new ifindex, meaning all host routes created with LinkIndex
// pointing to previous wireguard ifindex are deleted.
// so, we need to make sure that host routes on GW node will be
// reconfigured (pointing to updated wireguard ifindex)
kp.routeCacheGWNode.Clear()
kp.updateRoutingRulesForHostNetworkSupport(kp.remoteSubnets.UnsortedList(), Add)
}

return nil
Expand Down

0 comments on commit 75df50b

Please sign in to comment.