Skip to content

Commit

Permalink
Use RouterCanonicalHostname to avoid CNAME-loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Grumböck committed Apr 9, 2020
1 parent d3cb632 commit cdfd7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ocproute.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ func targetsFromOcpRouteStatus(status routeapi.RouteStatus) endpoint.Targets {
var targets endpoint.Targets

for _, ing := range status.Ingress {
if ing.Host != "" {
targets = append(targets, ing.Host)
if ing.RouterCanonicalHostname != "" {
targets = append(targets, ing.RouterCanonicalHostname)
}
}

Expand Down

0 comments on commit cdfd7f2

Please sign in to comment.