Repository navigation
Description
Title: Support generic CSDS types
Description:
Currently, Client Status Discovery Service supports only 5 types of config status listed below
- Listener Config
- Cluster Config
- Route Config
- Scoped Route Config
- Endpoint Config
However, more features were added to envoy like Extension Configuration Discovery Service (ECDS). Besides this, some projects like Istio add additional xDS types like the ones below
- NDS for sidecar DNS resolution
- PCDS - Proxy config discovery
Given this scenario, from Universal Data Plane API (UDPA) perspective, it makes sense to have a generic CSDS API which could be used when specific APIs are not yet available or when other projects implementing UDPA have their own xDS types. It looks similar to specific ones. Here is the (pseudo) protobuf of how it would look (not final, open for suggestions)
// admin.v3.GenericXdsConfigDump
message GenericXdsConfigDump {
string type_url = 1;
repeated google.protobuf.Any configs = 2;
}Then PerXdsConfig changes as shown below (1000 or large number because it is supposed to be the last one in the list)
// Detailed config (per xDS) with status.
// [#next-free-field: 8]
message PerXdsConfig {
option (udpa.annotations.versioning).previous_message_type =
"envoy.service.status.v2.PerXdsConfig";
ConfigStatus status = 1;
ClientConfigStatus client_status = 7 [deprecated = true];
oneof per_xds_config {
admin.v3.ListenersConfigDump listener_config = 2;
admin.v3.ClustersConfigDump cluster_config = 3;
admin.v3.RoutesConfigDump route_config = 4;
admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
admin.v3.EndpointsConfigDump endpoint_config = 6;
+ admin.v3.GenericXdsConfigDump generic_xds_config_dump = 1000;
}
}
Activity
lizan commentedon Mar 24, 2021
Sounds reasonable to me. cc @envoyproxy/api-shepherds
markdroth commentedon Mar 24, 2021
Would it make more sense to just add a more generic and simpler message structure for CSDS, similar to what I suggested in #14431 (comment)? We might even be able to migrate the existing types to this more generic structure over time.
htuch commentedon Mar 25, 2021
Either this or #14431, agree with the idea of extending to opaque Any.
su225 commentedon Mar 30, 2021
@markdroth - Based on ideas from #14431 and looking around the PRs related to it, it can be enhanced without breaking lot of existing things. I'll create a PR for this.
su225 commentedon Mar 30, 2021
@markdroth @htuch @lizan - raised #15760 . This is the first implementation. Once the API is refined, I'll copy it over to other API versions and add docs.
github-actions commentedon Apr 29, 2021
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
su225 commentedon May 2, 2021
Fixed formatting. @markdroth @lizan - CI is green now. Could you please take a look?