From 6ff367910eee49aab1d5df5ce337050a0a0591ab Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Tue, 17 Oct 2017 12:24:03 -0300 Subject: [PATCH] Fix glog initialization error --- pkg/ingress/controller/controller.go | 2 +- pkg/ingress/controller/launch.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/ingress/controller/controller.go b/pkg/ingress/controller/controller.go index c16f46a01c..d6608f8b2b 100644 --- a/pkg/ingress/controller/controller.go +++ b/pkg/ingress/controller/controller.go @@ -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) diff --git a/pkg/ingress/controller/launch.go b/pkg/ingress/controller/launch.go index b81bc7c37c..57d0d253a5 100644 --- a/pkg/ingress/controller/launch.go +++ b/pkg/ingress/controller/launch.go @@ -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")