-
Notifications
You must be signed in to change notification settings - Fork 5
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
gateway2: allow route delegation using well known label #10561
Conversation
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit 24b6099): https://gloo-edge--pr10561-shashankram-deleg-la-p5mpuwbn.web.app (expires Fri, 17 Jan 2025 16:02:04 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
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.
over all looks good
There is a product requirement to enable users to use a label to select HTTPRoutes to delegate to instead of GVK ref to other HTTPRoutes (includes wildcards). To strike a balance between flexibility and performance, this change implements the proposal to use a well known label `delegation.gateway.solo.io/label=<value>` to allow users to delegate to other HTTPRoutes using a label. HTTPRoutes are indexed using this well known label key that enable O(1) lookups of routes matching this label value. Also moves user-facing labels and annotations to the wellknown pkg to consolidate them for visibility. Signed-off-by: Shashank Ram <[email protected]>
da9989a
to
24b6099
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.
lgtm
Signed-off-by: Shashank Ram <[email protected]>
Signed-off-by: Shashank Ram <[email protected]>
…10561) (#10567) Signed-off-by: Shashank Ram <[email protected]>
Description
There is a product requirement to enable users to use a label to select HTTPRoutes to delegate to instead of GVK ref to other HTTPRoutes (includes wildcards).
To strike a balance between flexibility and performance, this change implements the proposal to use a well known label
delegation.gateway.solo.io/label=<value>
to allow users to delegate to other HTTPRoutes using a label. HTTPRoutes are indexed using this well known label key that enable O(1) lookups of routes matching this label value.API changes
New
delegation.gateway.solo.io/label
label to select HTTPRoutes to delegate to.Checklist:
TODO