Fix condition in server-alias annotation
This commit is contained in:
parent
4fdf9c98bf
commit
1216ed03f7
2 changed files with 29 additions and 1 deletions
|
|
@ -1066,7 +1066,7 @@ func (n *NGINXController) createServers(data []*ingress.Ingress,
|
|||
|
||||
if len(servers[host].Aliases) == 0 {
|
||||
servers[host].Aliases = anns.Aliases
|
||||
if _, ok := allAliases[host]; !ok {
|
||||
if aliases := allAliases[host]; len(aliases) == 0 {
|
||||
allAliases[host] = anns.Aliases
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue