Merge pull request #138 from caiyixiang/const-reference

reference to const
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-01-18 00:54:12 -03:00 committed by GitHub
commit 28c67257e3

View file

@ -295,7 +295,7 @@ func (n NGINXController) OnUpdate(cmap *api.ConfigMap, ingressCfg ingress.Config
Servers: ingressCfg.Servers, Servers: ingressCfg.Servers,
TCPBackends: ingressCfg.TCPEndpoints, TCPBackends: ingressCfg.TCPEndpoints,
UDPBackends: ingressCfg.UPDEndpoints, UDPBackends: ingressCfg.UPDEndpoints,
HealthzURI: "/healthz", HealthzURI: ngxHealthPath,
CustomErrors: len(cfg.CustomHTTPErrors) > 0, CustomErrors: len(cfg.CustomHTTPErrors) > 0,
Cfg: cfg, Cfg: cfg,
}, n.testTemplate) }, n.testTemplate)