-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TLSRoute controller. Add TLSRoute store functions. Add TLSRoute translation to the parser. Add TLSRoute example and test. Add TLSRoute integration tests. Fix copy/paste error in TCPRoute fakestore and add missing TCPRoute fakestore test. Disable parallel execution for example tests that had it. As these tests do not use isolated namespaces and use similar resources (namely Gateways and GatewayClasses) they can interfere with each other.
- Loading branch information
Showing
18 changed files
with
1,335 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
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# WARNING: Gateway APIs support is still experimental. Use as your own risk. | ||
# | ||
# NOTE: You need to install the Gateway APIs CRDs before using this example, | ||
# they are external and can be deployed with the following one-liner: | ||
# | ||
# kubectl kustomize https:/kubernetes-sigs/gateway-api.git/config/crd?ref=master | kubectl apply -f - | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: tcpecho | ||
labels: | ||
app: tcpecho | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: tcpecho | ||
template: | ||
metadata: | ||
labels: | ||
app: tcpecho | ||
spec: | ||
containers: | ||
- name: tcpecho | ||
image: cjimti/go-echo | ||
ports: | ||
- containerPort: 1025 | ||
env: | ||
- name: POD_NAME | ||
value: tlsroute-example-manifest | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: tcpecho | ||
spec: | ||
ports: | ||
- port: 8888 | ||
protocol: TCP | ||
targetPort: 1025 | ||
selector: | ||
app: tcpecho | ||
type: ClusterIP | ||
--- | ||
kind: GatewayClass | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
metadata: | ||
name: kong | ||
spec: | ||
controllerName: konghq.com/kic-gateway-controller | ||
--- | ||
kind: Gateway | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
metadata: | ||
name: kong | ||
spec: | ||
gatewayClassName: kong | ||
listeners: | ||
- name: http | ||
protocol: HTTP | ||
port: 80 | ||
- name: tcp | ||
protocol: TCP | ||
port: 8888 | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: TLSRoute | ||
metadata: | ||
name: tlsecho | ||
spec: | ||
parentRefs: | ||
- name: kong | ||
hostnames: | ||
- tlsecho.kong.example | ||
rules: | ||
- backendRefs: | ||
- name: tcpecho | ||
port: 8888 |
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
Oops, something went wrong.