close scheduler kube-apiserver

This commit is contained in:
David Eads 2019-11-11 08:04:22 -05:00
parent 6d0994fa66
commit 2d4fa51a6d

View File

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