feat: Add support for use-regex annotation#307
feat: Add support for use-regex annotation#307k8s-ci-robot merged 3 commits intokubernetes-sigs:mainfrom
Conversation
|
Hi @chakravardhan. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Stevenjin8
left a comment
There was a problem hiding this comment.
Some minor nits, but pretty much LGTM. One thing that we need to keep in mind is that ingress nginx supports referencing capture groups in other annotations, but I don't think we should deal with that in gateway api
713d650 to
c8a410f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
/approve |
|
/ok-to-test |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bexxmodd, chakravardhan, kkk777-7, Stevenjin8 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* feat: Add support for use-regex annotation * Address review comments * style: fix gofmt in regex_test.go
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements support for the
nginx.ingress.kubernetes.io/use-regexannotation, enabling Regex Path Matching in the generated Gateway API resources.Key Changes
use-regexsupport.HTTPRoute.spec.rules[].matches[].path.type: RegularExpressionwhen the annotation is set to "true".implementationSpecificPathMatchhandler to allow ImplementationSpecific paths to pass through the common conversion layer before being upgraded to RegularExpression.Verification
regex_test.gocovering positive (regex) and negative (prefix default) cases.Which issue(s) this PR fixes:
Does this PR introduce a user-facing change?: