Skip to content

Commit

Permalink
Avoid cableEngine cleanup when the gateway pod is restarted
Browse files Browse the repository at this point in the history
In the current code, it was seen that when the submariner-gateway
pod gets restarted, there is a brief datapath disruption until the
new pod comes online. The cleanup code in submariner-gateway pod is
not required as its handled by the route-agent code when there is
any transition in the Gateway nodes.

Partially fixes: #2498
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
  • Loading branch information
sridhargaddam authored and skitt committed Jun 2, 2023
1 parent 47b98f0 commit ee108a2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ func main() {

<-stopCh

if err := cableEngine.Cleanup(); err != nil {
klog.Errorf("error cleaning up cableEngine resources before removing Gateway")
}

klog.Info("All controllers stopped or exited. Stopping main loop")

if err := httpServer.Shutdown(context.TODO()); err != nil {
Expand Down

0 comments on commit ee108a2

Please sign in to comment.