Skip to content

Support generic CSDS types  #15622

Closed

Description

@su225

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

  1. added
    enhancement
    triage
    on Mar 23, 2021
  2. removed
    triage
    on Mar 24, 2021
  3. lizan commented on Mar 24, 2021

    @lizan
    Member

    Sounds reasonable to me. cc @envoyproxy/api-shepherds

  4. markdroth commented on Mar 24, 2021

    @markdroth
    Contributor

    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.

  5. htuch commented on Mar 25, 2021

    @htuch
    Member

    Either this or #14431, agree with the idea of extending to opaque Any.

  6. su225 commented on Mar 30, 2021

    @su225
    ContributorAuthor

    @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.

    message GenericXdsConfigDump {
        string type_url = 1;
        repeated XdsResource configs = 2;
    }
    
    message XdsResource {
        string type_url = 1; // redundant :(
        string name  = 2;
        string version_info = 3;
        google.protobuf.Any xds_config = 4;
        google.protobuf.Timestamp last_updated = 5;
        UpdateFailureState error_state = 6;
    }
  7. su225 commented on Mar 30, 2021

    @su225
    ContributorAuthor

    @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.

  8. github-actions commented on Apr 29, 2021

    @github-actions

    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.

  9. added
    stale
    on Apr 29, 2021
  10. su225 commented on May 2, 2021

    @su225
    ContributorAuthor

    Fixed formatting. @markdroth @lizan - CI is green now. Could you please take a look?

  11. removed
    stale
    on May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions