Skip to content

Commit

Permalink
add comments on sub message types in base::RetryPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Zhuang <stevenzzz@google.com>
  • Loading branch information
stevenzzzz committed Feb 27, 2024
1 parent 8b58e8d commit ffa7f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/envoy/config/core/v3/base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ message DataSource {
message RetryPolicy {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.core.RetryPolicy";

// This is a copy of the Route RetryPriority. See more details at :ref:`RetryPriority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
message RetryPriority {
string name = 1 [(validate.rules).string = {min_len: 1}];

Expand All @@ -442,6 +443,7 @@ message RetryPolicy {
}
}

// This is a copy of the Route RetryHostPredicate. See more details at :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
message RetryHostPredicate {
string name = 1 [(validate.rules).string = {min_len: 1}];

Expand Down
2 changes: 2 additions & 0 deletions api/envoy/config/core/v3/grpc_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -301,5 +301,7 @@ message GrpcService {
// <config_http_conn_man_headers_custom_request_headers>`.
repeated HeaderValue initial_metadata = 5;

// Optional default retry policy for streams toward the service.
// If an async stream doesn't have retry policy configured in its stream options, this retry policy is used.
RetryPolicy retry_policy = 6;
}

0 comments on commit ffa7f72

Please sign in to comment.