Skip to content

Commit 5fa6c01

Browse files
authored
fix: HTTPRouteInvalidNonExistentBackendRef (#136)
1 parent 90574fc commit 5fa6c01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/controller/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ func SetRouteConditionResolvedRefs(routeParentStatus *gatewayv1.RouteParentStatu
264264
if !status && strings.Contains(message, string(gatewayv1.RouteReasonInvalidKind)) {
265265
reason = string(gatewayv1.RouteReasonInvalidKind)
266266
}
267+
if !status && strings.Contains(message, "Service") && strings.Contains(message, "not found") {
268+
reason = string(gatewayv1.RouteReasonBackendNotFound)
269+
}
267270

268271
condition := metav1.Condition{
269272
Type: string(gatewayv1.RouteConditionResolvedRefs),

test/conformance/conformance_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ var skippedTestsForTraditionalRoutes = []string{
3737

3838
tests.GatewayInvalidTLSConfiguration.ShortName,
3939
tests.HTTPRouteInvalidCrossNamespaceParentRef.ShortName,
40-
tests.HTTPRouteInvalidNonExistentBackendRef.ShortName,
4140
tests.HTTPRouteInvalidParentRefNotMatchingSectionName.ShortName,
4241
}
4342

0 commit comments

Comments
 (0)