-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Implementation-specific Path Match type #3717
Comments
@mlavacca What if we supported a domain-prefixed match type (ie |
domain-prefixed type seems like the way to go here, agreed. |
Yep, that would certainly work. I like the idea. |
The idea is to be able to support gateway-specific DSL in case something like that exists. For instance, for Kong, it looks like that expressions-language and sometimes its semantics do not fit well into |
There are some common requirements such as semver-based routing, which can be matched with regular expressions, but it would be better if custom capabilities were open. |
/assign |
Problem Statement
There are currently three types of
HTTPRoute
path match:Exact
- corePathPrefix
(default) - coreRegularExpression
- implementation-specificThe only reason for
RegularExpression
to be implementation-specific is the lack of a shared standard for regex.What's missing here, though, is a real implementation-specific possibility such as the one provided by ingress:
https://github.com/kubernetes/kubernetes/blob/83bb5d570580a3f477737fec5c24ba8fc3554264/pkg/apis/networking/types.go#L546-L550.
Use case
At Kong, we have the need for this kind of path matching as the router can use a custom language that we would like to leverage in
HTTPRoute
s as well. This can be useful for other implementations as well.The text was updated successfully, but these errors were encountered: