Skip to content

Commit d68de0f

Browse files
committed
Use gateway api defined route condition reason
1 parent 5fac234 commit d68de0f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/controller/state/conditions/conditions.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ const (
3333
// Route rules has a backendRef with an unsupported value.
3434
RouteReasonBackendRefUnsupportedValue v1.RouteConditionReason = "UnsupportedValue"
3535

36-
// RouteReasonBackendRefUnsupportedProtocol is used with the "ResolvedRefs" condition when one of the
37-
// Route rules has a backendRef with an unsupported protocol.
38-
RouteReasonBackendRefUnsupportedProtocol v1.RouteConditionReason = "UnsupportedProtocol"
39-
4036
// RouteReasonInvalidGateway is used with the "Accepted" (false) condition when the Gateway the Route
4137
// references is invalid.
4238
RouteReasonInvalidGateway v1.RouteConditionReason = "InvalidGateway"
@@ -433,7 +429,7 @@ func NewRouteBackendRefUnsupportedProtocol(msg string) Condition {
433429
return Condition{
434430
Type: string(v1.RouteConditionResolvedRefs),
435431
Status: metav1.ConditionFalse,
436-
Reason: string(RouteReasonBackendRefUnsupportedProtocol),
432+
Reason: string(v1.RouteReasonUnsupportedProtocol),
437433
Message: msg,
438434
}
439435
}

0 commit comments

Comments
 (0)