johannes-engler-mw opened a new pull request, #2703: URL: https://github.com/apache/apisix-ingress-controller/pull/2703
### Type of change: - [ ] Bugfix - [X] New feature provided - [ ] Improve performance - [ ] Backport patches - [ ] Documentation - [ ] Refactor - [ ] Chore - [ ] CI/CD or Tests ### What this PR does / why we need it: This change implements support for port-based routing in HTTPRoute and GRPCRoute by leveraging the 'server_port' variable in APISIX. When a route targets a specific Gateway listener (via 'sectionName' or matching), the translator now adds a condition to ensure the route only matches traffic on that specific port. Key changes: - Update translator to add 'server_port' matching variables to routes. - Enhance controller to track all matching listeners for a route. - Update E2E test framework to support multi-port APISIX and in-cluster testing. - Add comprehensive E2E tests for port-based routing scenarios. It fixes #2639. ### Pre-submission checklist: - [X] Did you explain what problem does this PR solve? Or what new features have been added? - [X] Have you added corresponding test cases? - [X] Have you modified the corresponding document? - [X] Is this PR backward compatible? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
