Replies: 3 comments 4 replies
-
Could gateway-api/apis/v1/shared_types.go Line 344 in a919f8b We use it in our implementation for HTTPRoute fields that are not supported (ex. an unsupported filter). Although, we also use it for invalid values too |
Beta Was this translation helpful? Give feedback.
-
They are intended for a different use, when a field value does not belong to the enum. Example: gateway-api/apis/v1/httproute_types.go Lines 318 to 338 in 6b8c237 |
Beta Was this translation helpful? Give feedback.
-
@shaneutt @robscott @youngnick any thoughts on this one? Is this something we could consider to implement? |
Beta Was this translation helpful? Give feedback.
-
Problem statement:
At the moment there is no standardized way to check a
HTTPRoute
uses an unsupported feature. At Kong, we have a validating webhook that rejects HTTPRoutes using unsupported features. GEP-2162 introduced thesupportedFeatures
field to highlight the features supported by the implementation, and in the future work section such topic is mentioned. A standardized and shared way of accepting or rejecting resources using unsupported features is desirable, and this issue is about sensing the community's feelings.Proposed solution
I think a viable (and desirable) solution would be to move this logic away from implementations' webhooks and instead rely on the resources' status. We could introduce a new reason for gateways and routes
Accepted
condition so that no resource using an unsupported feature is accepted and proper feedback is given to the user.Beta Was this translation helpful? Give feedback.
All reactions