Fix invalid validation creating prometheus valid host values

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-01-14 10:59:55 -03:00
parent b10b60f9ae
commit e7236afc83

View file

@ -130,7 +130,7 @@ 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) { if server.Alias != "" && !hosts.Has(server.Alias) {
hosts.Insert(server.Alias) hosts.Insert(server.Alias)
} }