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/resolver: support inline RDS resource from LDS response #4299
Conversation
// inline RDS resource. | ||
|
||
// If there was an RDS watch, cancel it. | ||
if w.rdsName != "" { |
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 outer if
seems unnecessary.
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.
Right
return | ||
} | ||
|
||
// RDS name from update is not an empty string, start RDS watch. |
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 seems like it's documenting the if
immediately below, but it isn't.
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.
Modified (a little bit).
3d71af7
to
75f1d68
Compare
c258eac
to
4475811
Compare
@@ -110,6 +110,24 @@ func (w *serviceUpdateWatcher) handleLDSResp(update xdsclient.ListenerUpdate, er | |||
httpFilterConfig: update.HTTPFilters, | |||
} | |||
|
|||
if update.InlineRouteConfig != nil { | |||
// The LDS resp received has an inline RDS resource. |
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.
Nit: maybe get rid of this 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.
Done
Needed by direct path.