Skip to content

Commit

Permalink
Ensure we cleanup cableengine resources
Browse files Browse the repository at this point in the history
With the OVN-K CNI we were seeing and ungraceful
termination of the GW Pod in GW migration tests,
this patch ensures we cleanup the cableengine
on node resources before exiting.

Signed-off-by: Andrew Stoycos <astoycos@redhat.com>
  • Loading branch information
astoycos committed Jun 3, 2022
1 parent 5a47c29 commit 205a12b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ 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 205a12b

Please sign in to comment.