Skip to content

Commit

Permalink
fix: add debug log for gateway not having status
Browse files Browse the repository at this point in the history
  • Loading branch information
pkit committed May 7, 2024
1 parent fa17f9d commit e18d5f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ func (c *gatewayRouteResolver) resolve(rt gatewayRoute) (map[string]endpoint.Tar
hostTargets := make(map[string]endpoint.Targets)

meta := rt.Metadata()
if len(rt.RouteStatus().Parents) == 0 {
log.Debugf("No gateway accepted a parentRef in %s %s/%s", c.src.rtKind, meta.Namespace, meta.Name)
return hostTargets, nil
}
for _, rps := range rt.RouteStatus().Parents {
// Confirm the Parent is the standard Gateway kind.
ref := rps.ParentRef
Expand Down

0 comments on commit e18d5f0

Please sign in to comment.