Skip to content

Commit c4540eb

Browse files
fix: Correctly locate main route (non-managed one)
Signed-off-by: Kostis Kapelonis <kostis.kapelonis@octopus.com>
1 parent b772ec2 commit c4540eb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/plugin/plugin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ func getRouteRule[T1 GatewayAPIBackendRef, T2 GatewayAPIRouteRule[T1], T3 Gatewa
389389
break
390390
}
391391
}
392-
return routeRule, nil
392+
if isFound {
393+
return routeRule, nil
394+
}
393395
}
394396
return nil, routeRuleList.Error()
395397
}

0 commit comments

Comments
 (0)