Merge pull request #109303 from wojtek-t/clean_storage_shutdown

Cleanup rest storage resources on shutdown
This commit is contained in:
Kubernetes Prow Robot
2022-05-03 19:30:57 -07:00
committed by GitHub
55 changed files with 447 additions and 19 deletions

View File

@@ -186,6 +186,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer
m.GenericAPIServer.RunPreShutdownHooks()
}
close(stopCh)
m.GenericAPIServer.Destroy()
s.Close()
}