Merge pull request #3620 from walkafwalka/server-alias-metrics
Added server alias to metrics
This commit is contained in:
commit
79bdfcbe84
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ func (n *NGINXController) syncIngress(interface{}) error {
|
||||||
if !hosts.Has(server.Hostname) {
|
if !hosts.Has(server.Hostname) {
|
||||||
hosts.Insert(server.Hostname)
|
hosts.Insert(server.Hostname)
|
||||||
}
|
}
|
||||||
|
if server.Alias != "" && !hosts.Has(server.Hostname) {
|
||||||
|
hosts.Insert(server.Alias)
|
||||||
|
}
|
||||||
|
|
||||||
if !server.SSLPassthrough {
|
if !server.SSLPassthrough {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue