scheduler: refactor main entry Run()

This commit is contained in:
Hongchao Deng
2016-12-10 21:14:29 -08:00
parent 00e5777b66
commit a565648761
2 changed files with 71 additions and 66 deletions

View File

@@ -23,6 +23,7 @@ import (
"k8s.io/kubernetes/plugin/cmd/kube-scheduler/app"
"k8s.io/kubernetes/plugin/cmd/kube-scheduler/app/options"
"github.com/golang/glog"
"github.com/spf13/pflag"
)
@@ -36,5 +37,7 @@ func main() {
verflag.PrintAndExitIfRequested()
app.Run(s)
if err := app.Run(s); err != nil {
glog.Fatalf("scheduler app failed to run: %v", err)
}
}