mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +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)
|
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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user