Merge pull request #3620 from walkafwalka/server-alias-metrics

Added server alias to metrics
This commit is contained in:
Kubernetes Prow Robot 2019-01-04 11:10:39 -08:00 committed by GitHub
commit 79bdfcbe84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,6 +131,9 @@ func (n *NGINXController) syncIngress(interface{}) error {
if !hosts.Has(server.Hostname) {
hosts.Insert(server.Hostname)
}
if server.Alias != "" && !hosts.Has(server.Hostname) {
hosts.Insert(server.Alias)
}
if !server.SSLPassthrough {
continue