Fixes envoy config when both RetryOn* values are set (#7280)

pull/6833/head
Chris Piraino 5 years ago committed by GitHub
parent b83c190f0c
commit 47ff532735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save