Skip to content

Commit

Permalink
Fix glog initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Oct 17, 2017
1 parent ab6db02 commit 6ff3679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions pkg/ingress/controller/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6ff3679

Please sign in to comment.