Skip to content

Commit ee3bd1e

Browse files
committed
Use gateway api defined route condition reason
1 parent 3043d95 commit ee3bd1e

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"
@@ -408,7 +404,7 @@ func NewRouteBackendRefUnsupportedProtocol(msg string) Condition {
408404
return Condition{
409405
Type: string(v1.RouteConditionResolvedRefs),
410406
Status: metav1.ConditionFalse,
411-
Reason: string(RouteReasonBackendRefUnsupportedProtocol),
407+
Reason: string(v1.RouteReasonUnsupportedProtocol),
412408
Message: msg,
413409
}
414410
}

0 commit comments

Comments
 (0)