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:
Darren Shepherd
2019-08-26 15:55:35 -07:00
committed by rafaelbreno[commit]
parent 1d6158557c
commit 4e407fa5b5
7 changed files with 21 additions and 17 deletions

View File

@@ -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)
}