-
Notifications
You must be signed in to change notification settings - Fork 441
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
[hold/DNM] allow extensions to provide custom Upstreams #9901
Conversation
97fa065
to
b960afc
Compare
Visit the preview URL for this PR (updated for commit 2523cb8): https://gloo-edge--pr9901-stevenctl-hybrid-us-br6z6h1p.web.app (expires Fri, 11 Oct 2024 21:03:30 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
/kick build-bot never started https://storage.googleapis.com/solo-public-build-logs/logs.html?buildid=ba838d71-ecdb-41ed-9bbd-3f6f1f5d1aa5 |
for _, plugin := range clientPlugins { | ||
name, client := plugin.SourceName(), plugin.Client() | ||
if _, f := clientMap[name]; f { | ||
return nil, eris.Errorf("HybridUpstreamClient already has a source %q", name) |
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.
If this error occurs, is that a developer error that we could/should error more loudly about, or is this a case that can occur for some customers?
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.
Definitely a dev error. This is called from RunGlooWithExtensions
which also bubbles up the error, so I think it's crashing, right?
/kick |
I might not want to merge this after all, some work @lgadban is doing may make it obsolete. |
@stevenctl is this still relevant based on your last comment or should we close this out? |
closed in favor of KRT |
Description
We have an extension point for upstreams and endpoints with
DiscoveryPlugin
, but the EDS emitting logic is based on HybridUpstreamClient. This adds the ability to provide extension there as well.Code changes
[]plugin.Plugin
and adds to the clientMapTesting steps
WIP enterprise PoC
Checklist: