Skip to content

Commit e18d5f0

Browse files
committed
fix: add debug log for gateway not having status
fixes #4439
1 parent fa17f9d commit e18d5f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/gateway.go

+4
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ func (c *gatewayRouteResolver) resolve(rt gatewayRoute) (map[string]endpoint.Tar
289289
hostTargets := make(map[string]endpoint.Targets)
290290

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

0 commit comments

Comments
 (0)