-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert bad import, testfix, new test
Signed-off-by: Shubham Chauhan <shubham@tetrate.io>
- Loading branch information
1 parent
b54f2fe
commit c09d71c
Showing
17 changed files
with
138 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ gateways: | |
listeners: | ||
- name: tls | ||
protocol: TLS | ||
hostname: foo.com | ||
port: 80 | ||
tls: | ||
mode: Passthrough | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ gateways: | |
listeners: | ||
- name: tls | ||
protocol: TLS | ||
hostname: foo.com | ||
port: 90 | ||
tls: | ||
mode: Passthrough | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ gateways: | |
listeners: | ||
- name: tls | ||
protocol: TLS | ||
hostname: foo.com | ||
port: 90 | ||
tls: | ||
mode: Passthrough | ||
|
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
52 changes: 52 additions & 0 deletions
52
internal/gatewayapi/testdata/tlsroute-with-partial-wildcard-hostname.in.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,52 @@ | ||
gateways: | ||
- apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
namespace: envoy-gateway | ||
name: gateway-1 | ||
spec: | ||
gatewayClassName: envoy-gateway-class | ||
listeners: | ||
# TODO: add test for partial wildcard | ||
# - name: tls-1 | ||
# protocol: TLS | ||
# hostname: "*w.example.com" | ||
# port: 90 | ||
# tls: | ||
# mode: Passthrough | ||
# allowedRoutes: | ||
# namespaces: | ||
# from: All | ||
- name: tls | ||
protocol: TLS | ||
port: 91 | ||
tls: | ||
mode: Passthrough | ||
allowedRoutes: | ||
namespaces: | ||
from: All | ||
tlsRoutes: | ||
- apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: TLSRoute | ||
metadata: | ||
namespace: default | ||
name: tlsroute-1 | ||
spec: | ||
parentRefs: | ||
- namespace: envoy-gateway | ||
name: gateway-1 | ||
rules: | ||
- backendRefs: | ||
- name: service-1 | ||
namespace: test-service-namespace | ||
port: 8080 | ||
services: | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: default | ||
name: service-1 | ||
spec: | ||
clusterIP: 7.7.7.7 | ||
ports: | ||
- port: 8080 |
68 changes: 68 additions & 0 deletions
68
internal/gatewayapi/testdata/tlsroute-with-partial-wildcard-hostname.out.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,68 @@ | ||
gateways: | ||
- apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
namespace: envoy-gateway | ||
name: gateway-1 | ||
spec: | ||
gatewayClassName: envoy-gateway-class | ||
listeners: | ||
- name: tls | ||
protocol: TLS | ||
port: 91 | ||
tls: | ||
mode: Passthrough | ||
allowedRoutes: | ||
namespaces: | ||
from: All | ||
status: | ||
listeners: | ||
- name: tls | ||
supportedKinds: | ||
- group: gateway.networking.k8s.io | ||
kind: TLSRoute | ||
attachedRoutes: 0 | ||
conditions: | ||
- type: Ready | ||
status: "False" | ||
reason: Invalid | ||
message: Hostname must not be empty with TLS mode Passthrough. | ||
tlsRoutes: | ||
- apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: TLSRoute | ||
metadata: | ||
namespace: default | ||
name: tlsroute-1 | ||
spec: | ||
parentRefs: | ||
- namespace: envoy-gateway | ||
name: gateway-1 | ||
rules: | ||
- backendRefs: | ||
- name: service-1 | ||
namespace: test-service-namespace | ||
port: 8080 | ||
status: | ||
parents: | ||
- parentRef: | ||
namespace: envoy-gateway | ||
name: gateway-1 | ||
controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
conditions: | ||
- type: Accepted | ||
status: "False" | ||
reason: NoReadyListeners | ||
message: There are no ready listeners for this parent ref | ||
xdsIR: | ||
envoy-gateway-gateway-1: {} | ||
infraIR: | ||
envoy-gateway-gateway-1: | ||
proxy: | ||
metadata: | ||
labels: | ||
gateway.envoyproxy.io/owning-gateway-name: gateway-1 | ||
gateway.envoyproxy.io/owning-gateway-namespace: envoy-gateway | ||
name: envoy-gateway-gateway-1 | ||
image: envoyproxy/envoy:v1.23-latest | ||
listeners: | ||
- address: "" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ tcp: | |
port: 10080 | ||
tls: | ||
snis: | ||
- "www.example.com" | ||
- foo.com | ||
destinations: | ||
- host: "1.2.3.4" | ||
port: 50000 | ||
|
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