-
Notifications
You must be signed in to change notification settings - Fork 4.6k
xds/bootstrap: refactor to support top level and per-authority server config #4892
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
Conversation
|
This PR has the same changes from #4867, but also a commit to remove support for the new fields.
The new fields will be added when the other components are updated to use the new fields. Before that's ready, users specifying new fields will get logging about unknown fields. |
e897ed3 to
8a715fc
Compare
…ration Support new bootstrap fields - client_default_listener_resource_name_template - authorities Changes - new struct for server config (URI, creds, v2/v3, node), and reused for top level and per-authority server - and fix all the usages - node proto message is now for each server, to be consistent with TransportAPI version - config test to use cmp.Diff
…ers will see logging. Will add back after xdsclient and others are updated to make use of this new fields.
8a715fc to
3cf068b
Compare
| return nil, fmt.Errorf("xds: json.Unmarshal(%v) for field %q failed during bootstrap: %v", string(v), k, err) | ||
| } | ||
| default: | ||
| logger.Infof("Bootstrap content has unknown field: %s", k) |
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.
Should this be at warning level?
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.
Changed. I think it's lower than warning.
| return nil | ||
| } | ||
|
|
||
| // Authority represents an Authority for an xDS control plane server. |
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.
Can we have a comment which is more helpful than this :)
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.
I cannot think of useful comment for this struct. It's usage is explained in the Config struct where it's used.
I added a sentence.
Changes
RELEASE NOTES: N/A