-
Notifications
You must be signed in to change notification settings - Fork 301
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 a Name field to a IR Route Destination #1788
Conversation
617ea26
to
357136b
Compare
Codecov Report
@@ Coverage Diff @@
## main #1788 +/- ##
==========================================
+ Coverage 65.05% 65.11% +0.05%
==========================================
Files 86 86
Lines 12281 12316 +35
==========================================
+ Hits 7989 8019 +30
- Misses 3777 3782 +5
Partials 515 515
|
looks like I broke the Redirect conformance tests
looking into this rn |
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.
Please correct me if I am wrong:
This PR creates one cluster per route rule, eliminating the duplicated clusters when a route is attached to multiple gateway listeners. However, if a backend service is referenced in more than one route, there still are duplicated clusters created for that service. Should we consider creating one cluster per backend service?
good point, here's the thing, the xds cluster also contains other attributes such as loadbalancing and resiliency (outlier detection) that may be applied at a per xRoute per Rule level via a PolicyAttachment, so we need to create different clusters for those cases :) |
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.
Looks good to me and the xDS names are clean
lets wait another day for #1702 to go in, before this PR goes in, 1702 has already had to rebase a few times |
* Allows us to reduce and reuse the number of xds clusters created which are per xRoute per rule Fixes: envoyproxy#551 * Removes the hostname from the xds cluster name since the xds cluster name is no longer tied to the ir route name Fixes: envoyproxy#1785 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
983f732
to
aa5275b
Compare
Allows us to reduce and reuse the number of xds clusters created which are per xRoute per rule
Fixes: Per HttpRoute(API) cluster creation #551
Removes the hostname from the xds cluster name since the xds cluster name is no longer tied to the ir route name
Fixes: Prometheus stats not working with EG generated cluster names #1785
Also append
Kind
(httproute
/grpcroute
) to the IR Route and IR RouteDestination names so the generated xds routes and clusters are unique across different GAPI resource types and dont collide