Merge pull request #3664 from aledbf/fix-alias

Fix invalid validation creating prometheus valid host values
This commit is contained in:
Kubernetes Prow Robot 2019-01-14 07:54:07 -08:00 committed by GitHub
commit dfd2ed41f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ func (n *NGINXController) syncIngress(interface{}) error {
if !hosts.Has(server.Hostname) {
hosts.Insert(server.Hostname)
}
if server.Alias != "" && !hosts.Has(server.Hostname) {
if server.Alias != "" && !hosts.Has(server.Alias) {
hosts.Insert(server.Alias)
}