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 c74d02c3d2
commit 5aa0022570

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)
}