Skip to content

Commit

Permalink
redirect filters: add hostname definitions to test manifests
Browse files Browse the repository at this point in the history
Signed-off-by: AliceProxy <alicewasko@datawire.io>
  • Loading branch information
AliceProxy committed Sep 1, 2022
1 parent 3446cc6 commit 037147f
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -20,6 +21,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -32,6 +33,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down Expand Up @@ -68,10 +71,15 @@ xdsIR:
- name: envoy-gateway-gateway-1-http
address: 0.0.0.0
port: 80
hostnames:
- "*.envoyproxy.io"
routes:
- name: default-httproute-1-rule-0-match-0-*
- name: default-httproute-1-rule-0-match-0-gateway.envoyproxy.io
pathMatch:
prefix: "/"
headerMatches:
- name: ":authority"
exact: gateway.envoyproxy.io
destinations:
- host: 7.7.7.7
port: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -20,6 +21,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -32,6 +33,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down Expand Up @@ -66,10 +69,15 @@ xdsIR:
- name: envoy-gateway-gateway-1-http
address: 0.0.0.0
port: 80
hostnames:
- "*.envoyproxy.io"
routes:
- name: default-httproute-1-rule-0-match-0-*
- name: default-httproute-1-rule-0-match-0-gateway.envoyproxy.io
pathMatch:
prefix: "/"
headerMatches:
- name: ":authority"
exact: gateway.envoyproxy.io
destinations:
- host: 7.7.7.7
port: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -20,6 +21,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -32,6 +33,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down Expand Up @@ -69,10 +72,15 @@ xdsIR:
- name: envoy-gateway-gateway-1-http
address: 0.0.0.0
port: 80
hostnames:
- "*.envoyproxy.io"
routes:
- name: default-httproute-1-rule-0-match-0-*
- name: default-httproute-1-rule-0-match-0-gateway.envoyproxy.io
pathMatch:
prefix: "/"
headerMatches:
- name: ":authority"
exact: gateway.envoyproxy.io
# I believe the correct way to handle an invalid filter should be to allow the HTTPRoute to function
# normally but leave out the filter config and set the status, but this behaviour can be changed.
destinations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -20,6 +21,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -32,6 +33,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down Expand Up @@ -69,10 +72,15 @@ xdsIR:
- name: envoy-gateway-gateway-1-http
address: 0.0.0.0
port: 80
hostnames:
- "*.envoyproxy.io"
routes:
- name: default-httproute-1-rule-0-match-0-*
- name: default-httproute-1-rule-0-match-0-gateway.envoyproxy.io
pathMatch:
prefix: "/"
headerMatches:
- name: ":authority"
exact: gateway.envoyproxy.io
# I believe the correct way to handle an invalid filter should be to allow the HTTPRoute to function
# normally but leave out the filter config and set the status, but this behaviour can be changed.
destinations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -20,6 +21,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -32,6 +33,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down Expand Up @@ -69,10 +72,15 @@ xdsIR:
- name: envoy-gateway-gateway-1-http
address: 0.0.0.0
port: 80
hostnames:
- "*.envoyproxy.io"
routes:
- name: default-httproute-1-rule-0-match-0-*
- name: default-httproute-1-rule-0-match-0-gateway.envoyproxy.io
pathMatch:
prefix: "/"
headerMatches:
- name: ":authority"
exact: gateway.envoyproxy.io
# I believe the correct way to handle an invalid filter should be to allow the HTTPRoute to function
# normally but leave out the filter config and set the status, but this behaviour can be changed.
destinations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -20,6 +21,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gateways:
- name: http
protocol: HTTP
port: 80
hostname: "*.envoyproxy.io"
allowedRoutes:
namespaces:
from: All
Expand All @@ -32,6 +33,8 @@ httpRoutes:
namespace: default
name: httproute-1
spec:
hostnames:
- gateway.envoyproxy.io
parentRefs:
- namespace: envoy-gateway
name: gateway-1
Expand Down Expand Up @@ -69,10 +72,15 @@ xdsIR:
- name: envoy-gateway-gateway-1-http
address: 0.0.0.0
port: 80
hostnames:
- "*.envoyproxy.io"
routes:
- name: default-httproute-1-rule-0-match-0-*
- name: default-httproute-1-rule-0-match-0-gateway.envoyproxy.io
pathMatch:
prefix: "/"
headerMatches:
- name: ":authority"
exact: gateway.envoyproxy.io
destinations:
- host: 7.7.7.7
port: 8080
Expand Down

0 comments on commit 037147f

Please sign in to comment.