Skip to content

Commit

Permalink
Merge pull request #550 from gianrubio/fix-args
Browse files Browse the repository at this point in the history
Fix args
  • Loading branch information
aledbf authored Apr 4, 2017
2 parents 79f8019 + c21f7ce commit 22c3226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/nginx/pkg/cmd/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (n *NGINXController) OverrideFlags(flags *pflag.FlagSet) {
}

flags.Set("ingress-class", ic)
n.stats = newStatsCollector(ic, wc, n.binary)
n.stats = newStatsCollector(wc, ic, n.binary)
}

// DefaultIngressClass just return the default ingress class
Expand Down
4 changes: 2 additions & 2 deletions core/pkg/ingress/controller/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ func NewIngressController(backend ingress.Controller) *GenericController {
electionID = flags.String("election-id", "ingress-controller-leader", `Election id to use for status update.`)
)

backend.OverrideFlags(flags)

flags.AddGoFlagSet(flag.CommandLine)
flags.Parse(os.Args)

backend.OverrideFlags(flags)

flag.Set("logtostderr", "true")

glog.Info(backend.Info())
Expand Down

0 comments on commit 22c3226

Please sign in to comment.