Skip to content

Commit

Permalink
add locality_failover for retry
Browse files Browse the repository at this point in the history
  • Loading branch information
ckcd committed Nov 5, 2019
1 parent 3fcb499 commit 0b3ed82
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 139 deletions.
4 changes: 4 additions & 0 deletions kubernetes/customresourcedefinitions.gen.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions networking/v1alpha3/virtual_service.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,10 @@
"description": "Specifies the conditions under which retry takes place. One or more policies can be specified using a ‘,’ delimited list. See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on) and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.",
"type": "string",
"format": "string"
},
"localityFailover": {
"description": "Flag to specify whether the retries should retry to another locality. See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.",
"type": "boolean"
}
}
},
Expand Down
293 changes: 169 additions & 124 deletions networking/v1alpha3/virtual_service.pb.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions networking/v1alpha3/virtual_service.pb.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions networking/v1alpha3/virtual_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,10 @@ message HTTPRetry {
// See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
// and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
string retry_on = 3;

// Flag to specify whether the retries should retry to another locality.
// See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
bool locality_failover = 4;
}

// Describes the Cross-Origin Resource Sharing (CORS) policy, for a given
Expand Down
5 changes: 5 additions & 0 deletions proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40817,6 +40817,11 @@
"id": 3,
"name": "retry_on",
"type": "string"
},
{
"id": 4,
"name": "locality_failover",
"type": "bool"
}
]
},
Expand Down
37 changes: 22 additions & 15 deletions python/istio_api/networking/v1alpha3/virtual_service_pb2.py

Large diffs are not rendered by default.

0 comments on commit 0b3ed82

Please sign in to comment.