-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lior Okman <[email protected]>
- Loading branch information
Showing
7 changed files
with
118 additions
and
0 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
20 changes: 20 additions & 0 deletions
20
...nal/xds/translator/testdata/in/extension-xds-ir/http-route-extension-translate-error.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,20 @@ | ||
http: | ||
- name: "extension-post-xdstranslate-hook-error" | ||
address: "0.0.0.0" | ||
port: 10080 | ||
hostnames: | ||
- "*" | ||
path: | ||
mergeSlashes: true | ||
escapedSlashesAction: UnescapeAndRedirect | ||
routes: | ||
- name: "first-route" | ||
hostname: "*" | ||
pathMatch: | ||
prefix: "/" | ||
destination: | ||
name: "fail-close-error" | ||
settings: | ||
- endpoints: | ||
- host: "1.2.3.4" | ||
port: 50000 |
17 changes: 17 additions & 0 deletions
17
...anslator/testdata/out/extension-xds-ir/http-route-extension-translate-error.clusters.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,17 @@ | ||
- circuitBreakers: | ||
thresholds: | ||
- maxRetries: 1024 | ||
commonLbConfig: | ||
localityWeightedLbConfig: {} | ||
connectTimeout: 10s | ||
dnsLookupFamily: V4_PREFERRED | ||
edsClusterConfig: | ||
edsConfig: | ||
ads: {} | ||
resourceApiVersion: V3 | ||
serviceName: fail-close-error | ||
ignoreHealthOnHostRemoval: true | ||
lbPolicy: LEAST_REQUEST | ||
name: fail-close-error | ||
perConnectionBufferLimitBytes: 32768 | ||
type: EDS |
12 changes: 12 additions & 0 deletions
12
...nslator/testdata/out/extension-xds-ir/http-route-extension-translate-error.endpoints.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,12 @@ | ||
- clusterName: fail-close-error | ||
endpoints: | ||
- lbEndpoints: | ||
- endpoint: | ||
address: | ||
socketAddress: | ||
address: 1.2.3.4 | ||
portValue: 50000 | ||
loadBalancingWeight: 1 | ||
loadBalancingWeight: 1 | ||
locality: | ||
region: fail-close-error/backend/0 |
41 changes: 41 additions & 0 deletions
41
...nslator/testdata/out/extension-xds-ir/http-route-extension-translate-error.listeners.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,41 @@ | ||
- address: | ||
socketAddress: | ||
address: 0.0.0.0 | ||
portValue: 10080 | ||
defaultFilterChain: | ||
filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
commonHttpProtocolOptions: | ||
headersWithUnderscoresAction: REJECT_REQUEST | ||
http2ProtocolOptions: | ||
initialConnectionWindowSize: 1048576 | ||
initialStreamWindowSize: 65536 | ||
maxConcurrentStreams: 100 | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
suppressEnvoyHeaders: true | ||
mergeSlashes: true | ||
normalizePath: true | ||
pathWithEscapedSlashesAction: UNESCAPE_AND_REDIRECT | ||
routeConfig: | ||
name: error_route_configuration | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: error_vhost | ||
routes: | ||
- directResponse: | ||
status: 500 | ||
match: | ||
prefix: / | ||
name: error_route | ||
serverHeaderTransformation: PASS_THROUGH | ||
statPrefix: http-10080 | ||
useRemoteAddress: true | ||
name: extension-post-xdstranslate-hook-error | ||
name: extension-post-xdstranslate-hook-error | ||
perConnectionBufferLimitBytes: 32768 |
14 changes: 14 additions & 0 deletions
14
...translator/testdata/out/extension-xds-ir/http-route-extension-translate-error.routes.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,14 @@ | ||
- ignorePortInHostMatching: true | ||
name: extension-post-xdstranslate-hook-error | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: extension-post-xdstranslate-hook-error/* | ||
routes: | ||
- match: | ||
prefix: / | ||
name: first-route | ||
route: | ||
cluster: fail-close-error | ||
upgradeConfigs: | ||
- upgradeType: websocket |
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