Pass correct port to the stats collector

This commit is contained in:
Daniel Fernandes Martins 2017-08-31 11:04:38 -03:00
parent abc53ccfc5
commit 509958d807

View file

@ -372,7 +372,7 @@ func (n *NGINXController) OverrideFlags(flags *pflag.FlagSet) {
}
flags.Set("ingress-class", ic)
n.stats = newStatsCollector(wc, ic, n.binary, n.ports.Health)
n.stats = newStatsCollector(wc, ic, n.binary, n.ports.Status)
if n.isSSLPassthroughEnabled {
if !isPortAvailable(n.ports.SSLProxy) {