Merge pull request #85090 from deads2k/schedulershutdown

close scheduler kube-apiserver
This commit is contained in:
Kubernetes Prow Robot
2019-11-11 07:19:41 -08:00
committed by GitHub

View File

@@ -47,10 +47,11 @@ func StartApiserver() (string, ShutdownFunc) {
h.M.GenericAPIServer.Handler.ServeHTTP(w, req)
}))
framework.RunAMasterUsingServer(framework.NewIntegrationTestMasterConfig(), s, h)
_, _, closeFn := framework.RunAMasterUsingServer(framework.NewIntegrationTestMasterConfig(), s, h)
shutdownFunc := func() {
klog.Infof("destroying API server")
closeFn()
s.Close()
klog.Infof("destroyed API server")
}