Skip to content
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: add and parse new bootstrap fields for federation #8608

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

dapengzhang0
Copy link
Member

@dapengzhang0 dapengzhang0 commented Oct 15, 2021

Made changes as per "Bootstrap File Changes" section in go/grpc-xds-federation and implemented bootstrap file parsing logic for the change. How the new parsed data will be used will be implemented in upcoming PRs.

@dapengzhang0 dapengzhang0 marked this pull request as ready for review October 16, 2021 05:47
/**
* A template for the name of the Listener resource to subscribe to for a gRPC server.
*
* <p>If starts with "xdstp:", will be interpreted as a new-style name, in which case the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if using new style, e.g. xdstp://foo.google.com then it would look up server listener template in the authority map with the key foo.google.com? If so, it basically does nothing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand. Why it basically does nothing? There are some "gRPC server for "0.0.0.0:8080" examples in the design doc, I'm not 100% familiar with the server side, were there any problem with the examples?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no problem, i was not familiar with the design doc.
I was just imagining the lookup at the server side will be at runtime, currently it looks hardcode in the bootstrap.

/**
* A template for the name of the Listener resource to subscribe to for a gRPC server.
*
* <p>If starts with "xdstp:", will be interpreted as a new-style name, in which case the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no problem, i was not familiar with the design doc.
I was just imagining the lookup at the server side will be at runtime, currently it looks hardcode in the bootstrap.

@dapengzhang0 dapengzhang0 merged commit 1f90e0e into grpc:master Oct 18, 2021
@dapengzhang0 dapengzhang0 deleted the bootstrap-federation branch October 18, 2021 23:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants