OverrideFlags was called before parsing arguments (arguments was always empty)
correct args order for newStatsCollector
This commit is contained in:
parent
403cf5e989
commit
c21f7ce666
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue