Clean apiserver shutdown in integration tests

This commit is contained in:
Wojciech Tyczyński 2022-04-05 13:05:35 +02:00
parent f62c14a9cc
commit e95f8f2e42

View File

@ -186,6 +186,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer
m.GenericAPIServer.RunPreShutdownHooks() m.GenericAPIServer.RunPreShutdownHooks()
} }
close(stopCh) close(stopCh)
m.GenericAPIServer.Destroy()
s.Close() s.Close()
} }