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 len(destination.RetryOnStatusCodes) > 0 {
if retryPolicy.RetryOn != "" { if retryPolicy.RetryOn != "" {
retryPolicy.RetryOn = ",retriable-status-codes" retryPolicy.RetryOn = retryPolicy.RetryOn + ",retriable-status-codes"
} else { } else {
retryPolicy.RetryOn = "retriable-status-codes" retryPolicy.RetryOn = "retriable-status-codes"
} }

@ -281,7 +281,7 @@
"route": { "route": {
"cluster": "retry-both.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", "cluster": "retry-both.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
"retryPolicy": { "retryPolicy": {
"retryOn": ",retriable-status-codes", "retryOn": "connect-failure,retriable-status-codes",
"retriableStatusCodes": [ "retriableStatusCodes": [
401, 401,
409, 409,

Loading…
Cancel
Save