Added server alias to metrics

This commit is contained in:
Aaron Walker 2019-01-02 12:23:59 -08:00 committed by GitHub
parent 3d902ee108
commit 840b21080d

View file

@ -130,6 +130,9 @@ func (n *NGINXController) syncIngress(interface{}) error {
for _, server := range servers {
if !hosts.Has(server.Hostname) {
hosts.Insert(server.Hostname)
if server.Alias != "" {
hosts.Insert(server.Alias)
}
}
if !server.SSLPassthrough {