remove duplicated code

This commit is contained in:
hzxuzhonghu 2017-12-27 11:13:16 +08:00
parent b329786ec3
commit 551bf8a129

View file

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