mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-02 16:46:59 +00:00
apiservers: add synchronous shutdown mechanism on SIGTERM+INT
This commit is contained in:
@@ -29,7 +29,7 @@ func NewFederationCMServer() *Server {
|
||||
hks := Server{
|
||||
SimpleUsage: "federation-controller-manager",
|
||||
Long: "Controller manager for federation control plane. Manages federation service endpoints and controllers",
|
||||
Run: func(_ *Server, args []string) error {
|
||||
Run: func(_ *Server, args []string, stopCh <-chan struct{}) error {
|
||||
return app.Run(s)
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user