@@ -42,10 +42,6 @@ const (
4242 // not yet supported.
4343 RouteReasonUnsupportedField v1.RouteConditionReason = "UnsupportedField"
4444
45- // RouteConditionUnsupportedField indicates that the Route contains fields that are not yet supported.
46- // The route is still valid and processed, but these fields are ignored.
47- RouteConditionUnsupportedField v1.RouteConditionType = "UnsupportedField"
48-
4945 // RouteReasonInvalidGateway is used with the "Accepted" (false) condition when the Gateway the Route
5046 // references is invalid.
5147 RouteReasonInvalidGateway v1.RouteConditionReason = "InvalidGateway"
@@ -74,10 +70,6 @@ const (
7470 // that are not yet supported.
7571 GatewayReasonUnsupportedField v1.GatewayConditionReason = "UnsupportedField"
7672
77- // GatewayConditionUnsupportedField indicates that the Gateway contains fields that are not yet supported.
78- // The gateway is still valid and processed, but these fields are ignored.
79- GatewayConditionUnsupportedField v1.GatewayConditionType = "UnsupportedField"
80-
8173 // GatewayReasonUnsupportedValue is used with GatewayConditionAccepted (false) when a value of a field in a Gateway
8274 // is invalid or not supported.
8375 GatewayReasonUnsupportedValue v1.GatewayConditionReason = "UnsupportedValue"
@@ -370,10 +362,11 @@ func NewRouteUnsupportedValue(msg string) Condition {
370362 }
371363}
372364
373- // NewRouteUnsupportedField returns a Condition that indicates that the Route includes an unsupported field.
374- func NewRouteUnsupportedField (msg string ) Condition {
365+ // NewRouteAcceptedUnsupportedField returns a Condition that indicates that the Route is accepted but
366+ // includes an unsupported field.
367+ func NewRouteAcceptedUnsupportedField (msg string ) Condition {
375368 return Condition {
376- Type : string (RouteConditionUnsupportedField ),
369+ Type : string (v1 . RouteConditionAccepted ),
377370 Status : metav1 .ConditionTrue ,
378371 Reason : string (RouteReasonUnsupportedField ),
379372 Message : fmt .Sprintf ("The following unsupported parameters were ignored: %s" , msg ),
@@ -971,11 +964,11 @@ func NewGatewayInvalidParameters(msg string) Condition {
971964 }
972965}
973966
974- // NewGatewayUnsupportedField returns a Condition that indicates the Gateway is accepted but
967+ // NewGatewayAcceptedUnsupportedField returns a Condition that indicates the Gateway is accepted but
975968// contains a field that is not supported.
976- func NewGatewayUnsupportedField (msg string ) Condition {
969+ func NewGatewayAcceptedUnsupportedField (msg string ) Condition {
977970 return Condition {
978- Type : string (GatewayConditionUnsupportedField ),
971+ Type : string (v1 . GatewayConditionAccepted ),
979972 Status : metav1 .ConditionTrue ,
980973 Reason : string (GatewayReasonUnsupportedField ),
981974 Message : fmt .Sprintf ("Gateway accepted but the following unsupported parameters were ignored: %s" , msg ),
0 commit comments