Add stopCh to apiserver & context to kublet commands
Remove SetupSignalContext call from the apiserver Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
committed by
rafaelbreno[commit]
parent
1d6158557c
commit
4e407fa5b5
@@ -22,6 +22,7 @@ import (
|
||||
"os"
|
||||
_ "time/tzdata" // for timeZone support in CronJob
|
||||
|
||||
"k8s.io/apiserver/pkg/server"
|
||||
"k8s.io/component-base/cli"
|
||||
_ "k8s.io/component-base/logs/json/register" // for JSON log format registration
|
||||
_ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugins
|
||||
@@ -30,7 +31,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
command := app.NewAPIServerCommand()
|
||||
command := app.NewAPIServerCommand(server.SetupSignalHandler())
|
||||
code := cli.Run(command)
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user