Added server alias to metrics

This commit is contained in:
Aaron Walker 2019-01-02 12:23:59 -08:00 committed by GitHub
parent fea48a3a13
commit cb4e376093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {