mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
close scheduler kube-apiserver
This commit is contained in:
parent
6d0994fa66
commit
2d4fa51a6d
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user