-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(MeshRetry): allow setting numRetries to 0 to disable retries (#1…
…0250) Currently if you have any retry policy inherited from anywhere you wouldn't be able to remove the retries in a more specific policy. This enables users to set `{grpc,http}.numRetries = 0` in a more specific policy and remove the retry filter completely. It also disallows `tcp.maxConnectAttempt = 0` which would create an invalid envoy configuration. fix #10248 Signed-off-by: Charly Molter <charly.molter@konghq.com>
- Loading branch information
Showing
7 changed files
with
149 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ugins/policies/meshretry/plugin/v1alpha1/testdata/grpc_0_numretries.listeners.golden.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
address: | ||
socketAddress: | ||
address: 127.0.0.1 | ||
portValue: 10002 | ||
filterChains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
routeConfig: | ||
name: outbound:backend | ||
requestHeadersToAdd: | ||
- header: | ||
key: x-kuma-tags | ||
value: '&kuma.io/service=web&' | ||
validateClusters: false | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: backend | ||
routes: | ||
- match: | ||
prefix: / | ||
name: 9Zuf5Tg79OuZcQITwBbQykxAk2u4fRKrwYn3//AL4Yo= | ||
route: | ||
cluster: backend | ||
timeout: 0s | ||
statPrefix: outbound_127_0_0_1_10002 | ||
name: outbound:127.0.0.1:10002 | ||
trafficDirection: OUTBOUND |
34 changes: 34 additions & 0 deletions
34
...ugins/policies/meshretry/plugin/v1alpha1/testdata/http_0_numretries.listeners.golden.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
address: | ||
socketAddress: | ||
address: 127.0.0.1 | ||
portValue: 10001 | ||
filterChains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
routeConfig: | ||
name: outbound:backend | ||
requestHeadersToAdd: | ||
- header: | ||
key: x-kuma-tags | ||
value: '&kuma.io/service=web&' | ||
validateClusters: false | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: backend | ||
routes: | ||
- match: | ||
prefix: / | ||
name: 9Zuf5Tg79OuZcQITwBbQykxAk2u4fRKrwYn3//AL4Yo= | ||
route: | ||
cluster: backend | ||
timeout: 0s | ||
statPrefix: outbound_127_0_0_1_10001 | ||
name: outbound:127.0.0.1:10001 | ||
trafficDirection: OUTBOUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters