Skip to content

Commit

Permalink
Fixes envoy config when both RetryOn* values are set (#7280)
Browse files Browse the repository at this point in the history
  • Loading branch information
crhino authored Feb 18, 2020
1 parent b83c190 commit 47ff532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/xds/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 47ff532

Please sign in to comment.