Fix glog initialization error
This commit is contained in:
parent
ab6db02cd6
commit
6ff367910e
2 changed files with 4 additions and 1 deletions
|
@ -1219,7 +1219,7 @@ func (ic *GenericController) Start() {
|
||||||
|
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
// initial sync of secrets to avoid unnecessary reloads
|
// 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() {
|
for _, obj := range ic.listers.Ingress.List() {
|
||||||
ing := obj.(*extensions.Ingress)
|
ing := obj.(*extensions.Ingress)
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,9 @@ func NewIngressController(backend ingress.Controller) *GenericController {
|
||||||
flags.AddGoFlagSet(flag.CommandLine)
|
flags.AddGoFlagSet(flag.CommandLine)
|
||||||
backend.ConfigureFlags(flags)
|
backend.ConfigureFlags(flags)
|
||||||
flags.Parse(os.Args)
|
flags.Parse(os.Args)
|
||||||
|
// Workaround for this issue:
|
||||||
|
// https://github.com/kubernetes/kubernetes/issues/17162
|
||||||
|
flag.CommandLine.Parse([]string{})
|
||||||
backend.OverrideFlags(flags)
|
backend.OverrideFlags(flags)
|
||||||
|
|
||||||
flag.Set("logtostderr", "true")
|
flag.Set("logtostderr", "true")
|
||||||
|
|
Loading…
Reference in a new issue