diff --git a/test/integration/framework/controlplane_utils.go b/test/integration/framework/controlplane_utils.go index fc02449a0fa..71527da407b 100644 --- a/test/integration/framework/controlplane_utils.go +++ b/test/integration/framework/controlplane_utils.go @@ -186,6 +186,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer m.GenericAPIServer.RunPreShutdownHooks() } close(stopCh) + m.GenericAPIServer.Destroy() s.Close() }