@@ -42,10 +42,6 @@ const (
42
42
// not yet supported.
43
43
RouteReasonUnsupportedField v1.RouteConditionReason = "UnsupportedField"
44
44
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
-
49
45
// RouteReasonInvalidGateway is used with the "Accepted" (false) condition when the Gateway the Route
50
46
// references is invalid.
51
47
RouteReasonInvalidGateway v1.RouteConditionReason = "InvalidGateway"
@@ -74,10 +70,6 @@ const (
74
70
// that are not yet supported.
75
71
GatewayReasonUnsupportedField v1.GatewayConditionReason = "UnsupportedField"
76
72
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
-
81
73
// GatewayReasonUnsupportedValue is used with GatewayConditionAccepted (false) when a value of a field in a Gateway
82
74
// is invalid or not supported.
83
75
GatewayReasonUnsupportedValue v1.GatewayConditionReason = "UnsupportedValue"
@@ -370,10 +362,11 @@ func NewRouteUnsupportedValue(msg string) Condition {
370
362
}
371
363
}
372
364
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 {
375
368
return Condition {
376
- Type : string (RouteConditionUnsupportedField ),
369
+ Type : string (v1 . RouteConditionAccepted ),
377
370
Status : metav1 .ConditionTrue ,
378
371
Reason : string (RouteReasonUnsupportedField ),
379
372
Message : fmt .Sprintf ("The following unsupported parameters were ignored: %s" , msg ),
@@ -971,11 +964,11 @@ func NewGatewayInvalidParameters(msg string) Condition {
971
964
}
972
965
}
973
966
974
- // NewGatewayUnsupportedField returns a Condition that indicates the Gateway is accepted but
967
+ // NewGatewayAcceptedUnsupportedField returns a Condition that indicates the Gateway is accepted but
975
968
// contains a field that is not supported.
976
- func NewGatewayUnsupportedField (msg string ) Condition {
969
+ func NewGatewayAcceptedUnsupportedField (msg string ) Condition {
977
970
return Condition {
978
- Type : string (GatewayConditionUnsupportedField ),
971
+ Type : string (v1 . GatewayConditionAccepted ),
979
972
Status : metav1 .ConditionTrue ,
980
973
Reason : string (GatewayReasonUnsupportedField ),
981
974
Message : fmt .Sprintf ("Gateway accepted but the following unsupported parameters were ignored: %s" , msg ),
0 commit comments