-
Notifications
You must be signed in to change notification settings - Fork 4.6k
internal/xds: change xds_resolver to use dependency manager #8711
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
internal/xds: change xds_resolver to use dependency manager #8711
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8711 +/- ##
==========================================
- Coverage 83.31% 83.20% -0.11%
==========================================
Files 419 418 -1
Lines 32429 32356 -73
==========================================
- Hits 27017 26922 -95
- Misses 4038 4049 +11
- Partials 1374 1385 +11
🚀 New features to boost your workflow:
|
|
Is the PR description out of date? I don't see any changes about switching the dependency manager to use the serializer again. |
Yeah sorry , I was making that change earlier but Arjan suggested a different way, so that got changed. |
easwars
left a comment
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, modulo minor nits
| logger *grpclog.PrefixLogger | ||
| ldsResourceName string | ||
| dm *xdsdepmgr.DependencyManager | ||
| // The underlying xdsClient which performs all xDS requests and responses. |
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.
This comment was probably added way back when we were still getting used to what the xDS client was. I think we can remove it now. Doesn't add much value.
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.
Done.
| }}, | ||
| } | ||
|
|
||
| // Expect an error update from the resolver. Since the resource is cached, |
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.
This comment probably needs to be updated since the resolver doesn't report an error for ambient listener and route errors anymore.
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.
Done.
arjan-bal
left a comment
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
This change is part of A74 implementation.
This PR removes the listener and route watchers from resolver and changes it so that we get the resources from xds dependency manager.
RELEASE NOTES: