-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xds/internal/server: switch to generic xDS API for LDS/RDS #6726
Conversation
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.
xds/internal/server/rds_handler.go
Outdated
|
||
func (rw *rdsWatcher) OnResourceDoesNotExist() { | ||
if rw.logger.V(2) { | ||
rw.logger.Infof("RDS watch for resource %q reported resource-does-not-exits error: %v", rw.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.
Same here. exist
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. Thanks.
return | ||
} | ||
if lw.logger.V(2) { | ||
lw.logger.Infof("LDS watch for resource %q reported resource-does-not-exist error: %v", lw.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.
What does the formatting directive %v correspond to?
The changes to switch to the generic xDS API on the server ended up being simple:
OnUpdate
callback calls existing methods that handle updatesOnError
andOnResourceDoesNotExist
handle the errors inline#resource-agnostic-xdsclient-api
RELEASE NOTES: none