Ensure we cleanup cableengine resources
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.
@@ -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 {
