-
Notifications
You must be signed in to change notification settings - Fork 116
Modify listener isolation rules for routes #3159
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3159 +/- ##
==========================================
+ Coverage 86.14% 86.15% +0.01%
==========================================
Files 113 113
Lines 11648 11658 +10
Branches 62 62
==========================================
+ Hits 10034 10044 +10
Misses 1553 1553
Partials 61 61 ☔ View full report in Codecov by Sentry. |
abf1e57
to
45651cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to review the unit tests.
Did you verify that the previously failing NFR test now passes?
I did not run the NFR test. I can do that but verified using the gateway and route spec that led to the failure, examples are added above. |
9d41a66
to
f70b7e2
Compare
With this route:
and with this gateway:
When I checkout these changes, here's the generated nginx conf:
Is it expected behavior that the tea route is missing? |
Yes I believe so, same ports. The second route has hostname This has been my understanding of listener isolation. Try using |
f70b7e2
to
8443058
Compare
8443058
to
b4ee102
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for running through some of my examples, lgtm! 🚀
Scale tests pass now so merging this PR. |
Proposed changes
Write a clear and concise description that helps reviewers understand the purpose and impact of your changes. Use the
following format:
Problem: Users are unable to configure server blocks with listener sharing the same hostname with another listener but on a different port.
Solution: Modify rules for listener isolation in the following way
Note: Not adding unit tests for same hostname and port combination for L4Routes because we never do not attach L4Route to listeners with same port and combination by design.
Testing: Manual Testing
Also verified tests from previous PR
Gateway
Route
curl to
cafe.example.com
should succeedGateway
Should receive response from
coffee
Please focus on (optional): If you any specific areas where you would like reviewers to focus their attention or provide
specific feedback, add them here.
Closes #3137
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.