mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 02:37:36 +00:00
close scheduler kube-apiserver
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user