Skip to content

Commit

Permalink
rls: sync latest rls protos from grpc-proto (grpc#8638)
Browse files Browse the repository at this point in the history
  • Loading branch information
dapengzhang0 authored and beatrausch committed Nov 4, 2021
1 parent b861c5e commit 3f7a31f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
13 changes: 5 additions & 8 deletions rls/src/main/proto/grpc/lookup/v1/rls.proto
Expand Up @@ -22,14 +22,6 @@ option java_package = "io.grpc.lookup.v1";
option java_outer_classname = "RlsProto";

message RouteLookupRequest {
// Full host name of the target server, e.g. firestore.googleapis.com.
// Only set for gRPC requests; HTTP requests must use key_map explicitly.
// Deprecated in favor of setting key_map keys with GrpcKeyBuilder.extra_keys.
string server = 1 [deprecated = true];
// Full path of the request, i.e. "/service/method".
// Only set for gRPC requests; HTTP requests must use key_map explicitly.
// Deprecated in favor of setting key_map keys with GrpcKeyBuilder.extra_keys.
string path = 2 [deprecated = true];
// Target type allows the client to specify what kind of target format it
// would like from RLS to allow it to find the regional server, e.g. "grpc".
string target_type = 3;
Expand All @@ -41,8 +33,13 @@ message RouteLookupRequest {
}
// Reason for making this request.
Reason reason = 5;
// For REASON_STALE, the header_data from the stale response, if any.
string stale_header_data = 6;
// Map of key values extracted via key builders for the gRPC or HTTP request.
map<string, string> key_map = 4;

reserved 1, 2;
reserved "server", "path";
}

message RouteLookupResponse {
Expand Down
7 changes: 7 additions & 0 deletions rls/src/main/proto/grpc/lookup/v1/rls_config.proto
Expand Up @@ -216,3 +216,10 @@ message RouteLookupConfig {
reserved 10;
reserved "request_processing_strategy";
}

// RouteLookupClusterSpecifier is used in xDS to represent a cluster specifier
// plugin for RLS.
message RouteLookupClusterSpecifier {
// The RLS config for this cluster specifier plugin instance.
RouteLookupConfig route_lookup_config = 1;
}

0 comments on commit 3f7a31f

Please sign in to comment.