mirror of https://github.com/status-im/consul.git
Fixes envoy config when both RetryOn* values are set (#7280)
This commit is contained in:
parent
b83c190f0c
commit
47ff532735
|
@ -129,7 +129,7 @@ func makeUpstreamRouteForDiscoveryChain(
|
|||
}
|
||||
if len(destination.RetryOnStatusCodes) > 0 {
|
||||
if retryPolicy.RetryOn != "" {
|
||||
retryPolicy.RetryOn = ",retriable-status-codes"
|
||||
retryPolicy.RetryOn = retryPolicy.RetryOn + ",retriable-status-codes"
|
||||
} else {
|
||||
retryPolicy.RetryOn = "retriable-status-codes"
|
||||
}
|
||||
|
|
|
@ -281,7 +281,7 @@
|
|||
"route": {
|
||||
"cluster": "retry-both.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||||
"retryPolicy": {
|
||||
"retryOn": ",retriable-status-codes",
|
||||
"retryOn": "connect-failure,retriable-status-codes",
|
||||
"retriableStatusCodes": [
|
||||
401,
|
||||
409,
|
||||
|
|
Loading…
Reference in New Issue