Fix glog initialization error

This commit is contained in:
Manuel de Brito Fontes 2017-10-17 12:24:03 -03:00
parent ab6db02cd6
commit 6ff367910e
2 changed files with 4 additions and 1 deletions

View file

@ -109,6 +109,9 @@ func NewIngressController(backend ingress.Controller) *GenericController {
flags.AddGoFlagSet(flag.CommandLine)
backend.ConfigureFlags(flags)
flags.Parse(os.Args)
// Workaround for this issue:
// https://github.com/kubernetes/kubernetes/issues/17162
flag.CommandLine.Parse([]string{})
backend.OverrideFlags(flags)
flag.Set("logtostderr", "true")