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

@ -1219,7 +1219,7 @@ func (ic *GenericController) Start() {
time.Sleep(5 * time.Second)
// initial sync of secrets to avoid unnecessary reloads
glog.Info("running initial sync of secret")
glog.Info("running initial sync of secrets")
for _, obj := range ic.listers.Ingress.List() {
ing := obj.(*extensions.Ingress)

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")