remove duplicated code
This commit is contained in:
parent
b329786ec3
commit
551bf8a129
1 changed files with 1 additions and 3 deletions
|
@ -19,7 +19,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
@ -135,8 +134,7 @@ func parseFlags() (bool, *controller.Configuration, error) {
|
||||||
flag.Set("logtostderr", "true")
|
flag.Set("logtostderr", "true")
|
||||||
|
|
||||||
flags.AddGoFlagSet(flag.CommandLine)
|
flags.AddGoFlagSet(flag.CommandLine)
|
||||||
flags.Parse(os.Args)
|
pflag.Parse()
|
||||||
flag.Set("logtostderr", "true")
|
|
||||||
|
|
||||||
// Workaround for this issue:
|
// Workaround for this issue:
|
||||||
// https://github.com/kubernetes/kubernetes/issues/17162
|
// https://github.com/kubernetes/kubernetes/issues/17162
|
||||||
|
|
Loading…
Reference in a new issue