-
Notifications
You must be signed in to change notification settings - Fork 5.5k
api: LEDS api introduction #17419
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
api: LEDS api introduction #17419
Changes from 2 commits
174ad80
56f44b0
96a4ed8
9d31e22
5d49958
da0db40
9e5bb43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 don't think it's legal to have a repeated field in a oneof, so this oneof_promotion won't actually work. :(
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.
Yes you are correct, thanks!
I think the right way would be to support both
lb_endpointsand theleds_cluster_locality_config(similar to what's being done for VHDS). I've looked at my implementation and it won't require much change.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.
Alternatively, consider deprecating the existing
lb_endpointsfield and replacing it with a message that contains the repeated field, and then putting that message in the oneof. In other words, add this message:And then change the fields here to: