Move flag into sub pkg

This commit is contained in:
harry
2016-03-11 13:33:16 +08:00
committed by Harry Zhang
parent 5b359213b1
commit f19d59cf35
17 changed files with 34 additions and 23 deletions

View File

@@ -21,6 +21,7 @@ import (
"k8s.io/kubernetes/pkg/healthz"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/flag"
"k8s.io/kubernetes/pkg/version/verflag"
"k8s.io/kubernetes/plugin/cmd/kube-scheduler/app"
"k8s.io/kubernetes/plugin/cmd/kube-scheduler/app/options"
@@ -37,7 +38,7 @@ func main() {
s := options.NewSchedulerServer()
s.AddFlags(pflag.CommandLine)
util.InitFlags()
flag.InitFlags()
util.InitLogs()
defer util.FlushLogs()