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

udpa: plumb udpa:// resource names/locators. #11810

Merged
merged 5 commits into from
Jul 1, 2020

Conversation

htuch
Copy link
Member

@htuch htuch commented Jun 29, 2020

These are currently set as [#not-implemented-hide:]. There should be enough plumbing here to start
implementing the first roadmap steps in #11264, i.e. some simple delta discovery flows with core
LDS/CDS/RDS/EDS/SDS.

I've punted on VHDS and SRDS until later, as these will require special case mapping of their
resource keys into context parameters.

Risk level: Low (Unused API changes).
Testing: Built docs and proto_format.sh.

Part of #11264.

Signed-off-by: Harvey Tuch htuch@google.com

These are currently set as [#not-implemented-hide:]. There should be enough plumbing here to start
implementing the first roadmap steps in envoyproxy#11264, i.e. some simple delta discovery flows with core
LDS/CDS/RDS/EDS/SDS.

I've punted on VHDS and SRDS until later, as these will require special case mapping of their
resource keys into context parameters.

Risk level: Low (Unused API changes).
Testing: Built docs and proto_format.sh.

Part of envoyproxy#11264.

Signed-off-by: Harvey Tuch <htuch@google.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #11810 was opened by htuch.

see: more, trace.

@htuch
Copy link
Member Author

htuch commented Jun 30, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s), but failed to run 2 pipeline(s).

Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks LGTM with a few small questions.

/wait-any

Copy link
Contributor

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

It's great to see this finally happening!

// Resource locator for EDS. This is mutually exclusive to *service_name*.
// [#not-implemented-hide:]
udpa.core.v1.ResourceLocator eds_resource_locator = 3
[(udpa.annotations.field_migrate).oneof_promotion = "name_specifier"];
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we want this field to replace both the service_name field and the eds_config field? In other words, I think we want either this new field or both eds_config and service_name.

Maybe the right thing to do here is to leave the EdsClusterConfig message alone and move this new field into a top-level field in the Cluster message. Then the oneof can contain this new field and the EdsClusterConfig field.

Copy link
Member Author

Choose a reason for hiding this comment

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

So, as per the resolution algorithm in the bootstrap, I think it's fine to have "peer config sources". This get checked first, then the bootstrap. It provides a more gradual path to adoption for folks who don't already provide config sources for everything in bootstrap.

api/envoy/service/discovery/v3/discovery.proto Outdated Show resolved Hide resolved
api/envoy/service/discovery/v3/discovery.proto Outdated Show resolved Hide resolved
htuch added 2 commits June 30, 2020 14:12
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Contributor

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Looks great!

@htuch
Copy link
Member Author

htuch commented Jul 1, 2020

@mattklein123 any additional comments or changes you'd like to see happen?

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM. We can sort out the final docs later.

@htuch htuch merged commit 99471fd into envoyproxy:master Jul 1, 2020
@htuch htuch deleted the api-udpa-uris branch July 1, 2020 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants