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 (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/golang/glog"
|
||||
|
@ -135,8 +134,7 @@ func parseFlags() (bool, *controller.Configuration, error) {
|
|||
flag.Set("logtostderr", "true")
|
||||
|
||||
flags.AddGoFlagSet(flag.CommandLine)
|
||||
flags.Parse(os.Args)
|
||||
flag.Set("logtostderr", "true")
|
||||
pflag.Parse()
|
||||
|
||||
// Workaround for this issue:
|
||||
// https://github.com/kubernetes/kubernetes/issues/17162
|
||||
|
|
Loading…
Reference in a new issue