Skip to content

Commit

Permalink
add rediness listener to outfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjumani committed Jan 2, 2025
1 parent 29e0f9a commit b074b14
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 0 deletions.
59 changes: 59 additions & 0 deletions projects/gateway2/setup/testdata/failover-default-diffns-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,59 @@ listeners:
upgradeConfigs:
- upgradeType: websocket
name: http
- address:
socketAddress:
address: '::'
ipv4Compat: true
portValue: 8082
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.fault
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault
- name: envoy.filters.http.cors
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.local_ratelimit
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stage: 3
statPrefix: http_local_ratelimit
- name: envoy.filters.http.grpc_web
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.health_check
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
headers:
- exactMatch: /envoy-hc
name: :path
passThroughMode: false
- name: io.solo.transformation
typedConfig:
'@type': type.googleapis.com/envoy.api.v2.filter.http.FilterTransformations
- name: envoy.filters.http.csrf
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.csrf.v3.CsrfPolicy
filterEnabled:
defaultValue: {}
- name: envoy.filters.http.router
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
normalizePath: true
rds:
configSource:
ads: {}
resourceApiVersion: V3
routeConfigName: readiness_listener-routes
statPrefix: http
upgradeConfigs:
- upgradeType: websocket
name: readiness_listener
routes:
- ignorePortInHostMatching: true
name: http-routes-14610285773269467959
Expand All @@ -222,3 +275,9 @@ routes:
route:
cluster: kube-svc:gwtest-reviews-8080_gwtest
clusterNotFoundResponseCode: INTERNAL_SERVER_ERROR
- ignorePortInHostMatching: true
name: readiness_listener-routes
virtualHosts:
- domains:
- '*'
name: local_service
59 changes: 59 additions & 0 deletions projects/gateway2/setup/testdata/failover-default-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,59 @@ listeners:
upgradeConfigs:
- upgradeType: websocket
name: http
- address:
socketAddress:
address: '::'
ipv4Compat: true
portValue: 8082
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.fault
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault
- name: envoy.filters.http.cors
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.local_ratelimit
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stage: 3
statPrefix: http_local_ratelimit
- name: envoy.filters.http.grpc_web
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.health_check
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
headers:
- exactMatch: /envoy-hc
name: :path
passThroughMode: false
- name: io.solo.transformation
typedConfig:
'@type': type.googleapis.com/envoy.api.v2.filter.http.FilterTransformations
- name: envoy.filters.http.csrf
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.csrf.v3.CsrfPolicy
filterEnabled:
defaultValue: {}
- name: envoy.filters.http.router
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
normalizePath: true
rds:
configSource:
ads: {}
resourceApiVersion: V3
routeConfigName: readiness_listener-routes
statPrefix: http
upgradeConfigs:
- upgradeType: websocket
name: readiness_listener
routes:
- ignorePortInHostMatching: true
name: http-routes-14610285773269467959
Expand All @@ -222,3 +275,9 @@ routes:
route:
cluster: kube-svc:gwtest-reviews-8080_gwtest
clusterNotFoundResponseCode: INTERNAL_SERVER_ERROR
- ignorePortInHostMatching: true
name: readiness_listener-routes
virtualHosts:
- domains:
- '*'
name: local_service
59 changes: 59 additions & 0 deletions projects/gateway2/setup/testdata/failover-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,59 @@ listeners:
upgradeConfigs:
- upgradeType: websocket
name: http
- address:
socketAddress:
address: '::'
ipv4Compat: true
portValue: 8082
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.fault
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault
- name: envoy.filters.http.cors
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.local_ratelimit
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stage: 3
statPrefix: http_local_ratelimit
- name: envoy.filters.http.grpc_web
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.health_check
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
headers:
- exactMatch: /envoy-hc
name: :path
passThroughMode: false
- name: io.solo.transformation
typedConfig:
'@type': type.googleapis.com/envoy.api.v2.filter.http.FilterTransformations
- name: envoy.filters.http.csrf
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.csrf.v3.CsrfPolicy
filterEnabled:
defaultValue: {}
- name: envoy.filters.http.router
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
normalizePath: true
rds:
configSource:
ads: {}
resourceApiVersion: V3
routeConfigName: readiness_listener-routes
statPrefix: http
upgradeConfigs:
- upgradeType: websocket
name: readiness_listener
routes:
- ignorePortInHostMatching: true
name: http-routes-14610285773269467959
Expand All @@ -221,3 +274,9 @@ routes:
route:
cluster: kube-svc:gwtest-reviews-8080_gwtest
clusterNotFoundResponseCode: INTERNAL_SERVER_ERROR
- ignorePortInHostMatching: true
name: readiness_listener-routes
virtualHosts:
- domains:
- '*'
name: local_service
59 changes: 59 additions & 0 deletions projects/gateway2/setup/testdata/happypath-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,59 @@ listeners:
upgradeConfigs:
- upgradeType: websocket
name: http
- address:
socketAddress:
address: '::'
ipv4Compat: true
portValue: 8082
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.fault
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault
- name: envoy.filters.http.cors
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.local_ratelimit
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stage: 3
statPrefix: http_local_ratelimit
- name: envoy.filters.http.grpc_web
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.health_check
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
headers:
- exactMatch: /envoy-hc
name: :path
passThroughMode: false
- name: io.solo.transformation
typedConfig:
'@type': type.googleapis.com/envoy.api.v2.filter.http.FilterTransformations
- name: envoy.filters.http.csrf
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.csrf.v3.CsrfPolicy
filterEnabled:
defaultValue: {}
- name: envoy.filters.http.router
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
normalizePath: true
rds:
configSource:
ads: {}
resourceApiVersion: V3
routeConfigName: readiness_listener-routes
statPrefix: http
upgradeConfigs:
- upgradeType: websocket
name: readiness_listener
routes:
- ignorePortInHostMatching: true
name: http-routes-14610285773269467959
Expand All @@ -171,3 +224,9 @@ routes:
route:
cluster: kube-svc:gwtest-reviews-8080_gwtest
clusterNotFoundResponseCode: INTERNAL_SERVER_ERROR
- ignorePortInHostMatching: true
name: readiness_listener-routes
virtualHosts:
- domains:
- '*'
name: local_service
59 changes: 59 additions & 0 deletions projects/gateway2/setup/testdata/listeneropts-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,59 @@ listeners:
- upgradeType: websocket
name: other
perConnectionBufferLimitBytes: 42000
- address:
socketAddress:
address: '::'
ipv4Compat: true
portValue: 8082
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.fault
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault
- name: envoy.filters.http.cors
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.local_ratelimit
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stage: 3
statPrefix: http_local_ratelimit
- name: envoy.filters.http.grpc_web
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.health_check
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
headers:
- exactMatch: /envoy-hc
name: :path
passThroughMode: false
- name: io.solo.transformation
typedConfig:
'@type': type.googleapis.com/envoy.api.v2.filter.http.FilterTransformations
- name: envoy.filters.http.csrf
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.csrf.v3.CsrfPolicy
filterEnabled:
defaultValue: {}
- name: envoy.filters.http.router
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
normalizePath: true
rds:
configSource:
ads: {}
resourceApiVersion: V3
routeConfigName: readiness_listener-routes
statPrefix: http
upgradeConfigs:
- upgradeType: websocket
name: readiness_listener
routes:
- ignorePortInHostMatching: true
name: http-routes-14610285773269467959
Expand Down Expand Up @@ -232,3 +285,9 @@ routes:
route:
cluster: kube-svc:gwtest-reviews-8080_gwtest
clusterNotFoundResponseCode: INTERNAL_SERVER_ERROR
- ignorePortInHostMatching: true
name: readiness_listener-routes
virtualHosts:
- domains:
- '*'
name: local_service

0 comments on commit b074b14

Please sign in to comment.