Skip to content

Commit f54994c

Browse files
authored
Doc udpates for Gateway API v1.2 CRDs (#683)
1 parent 479d901 commit f54994c

21 files changed

+54
-33
lines changed

docs/api-types/gateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ are assigned, please refer to our [Getting Started Guide](../guides/getstarted.m
4040
Here is a sample configuration that demonstrates how to set up a `Gateway`:
4141

4242
```yaml
43-
apiVersion: gateway.networking.k8s.io/v1beta1
43+
apiVersion: gateway.networking.k8s.io/v1
4444
kind: Gateway
4545
metadata:
4646
name: my-hotel

docs/api-types/grpc-route.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This allows you to define and manage the routing of gRPC traffic within your Kub
3636
Here is a sample configuration that demonstrates how to set up a `GRPCRoute` for a HelloWorld gRPC service:
3737

3838
```yaml
39-
apiVersion: gateway.networking.k8s.io/v1alpha2
39+
apiVersion: gateway.networking.k8s.io/v1
4040
kind: GRPCRoute
4141
metadata:
4242
name: greeter-grpc-route
@@ -78,4 +78,4 @@ In this example:
7878

7979
This `GRPCRoute` documentation provides a detailed introduction, feature set, and a basic example of how to configure
8080
and use the resource within AWS Gateway API Controller project. For in-depth details and specifications, you can refer to the
81-
official [Gateway API documentation](https://gateway-api.sigs.k8s.io/references/spec/#networking.x-k8s.io/v1alpha2.GRPCRoute).
81+
official [Gateway API documentation](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.GRPCRoute).

docs/api-types/http-route.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Here is a sample configuration that demonstrates how to set up an `HTTPRoute` th
3838
Service and ServiceImport, using rules to determine which backendRef to route traffic to.
3939

4040
```yaml
41-
apiVersion: gateway.networking.k8s.io/v1beta1
41+
apiVersion: gateway.networking.k8s.io/v1
4242
kind: HTTPRoute
4343
metadata:
4444
name: inventory
@@ -83,7 +83,7 @@ Service and ServiceImport, using weighted rules to route more traffic to one bac
8383
simplify the process of creating blue/green deployments by shifting rule weight from one backendRef to another.
8484

8585
```yaml
86-
apiVersion: gateway.networking.k8s.io/v1beta1
86+
apiVersion: gateway.networking.k8s.io/v1
8787
kind: HTTPRoute
8888
metadata:
8989
name: inventory
@@ -120,4 +120,4 @@ In this example:
120120

121121
This `HTTPRoute` documentation provides a detailed introduction, feature set, and a basic example of how to configure
122122
and use the resource within AWS Gateway API Controller project. For in-depth details and specifications, you can refer to the
123-
official [Gateway API documentation](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1alpha2.HTTPRoute).
123+
official [Gateway API documentation](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.HTTPRoute).

docs/api-types/service-import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec: {}
3939
4040
The following example HTTPRoute directs traffic to the above ServiceImport.
4141
```yaml
42-
apiVersion: gateway.networking.k8s.io/v1beta1
42+
apiVersion: gateway.networking.k8s.io/v1
4343
kind: HTTPRoute
4444
metadata:
4545
name: my-route

docs/contributing/developer.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,13 @@ Before proceeding to the next sections, you need to:
4141

4242
Once cluster is ready, we need to apply CRDs for `gateway-api` resources. First install core `gateway-api` CRDs:
4343

44-
=== "v1 CRDs (latest, recommended)"
44+
=== "v1.2 CRDs"
4545
Install the latest `v1` CRDs:
4646
```bash
47-
kubectl apply -f config/crds/bases/k8s-gateway-v1.0.0.yaml
47+
kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.2.0" | kubectl apply -f -
4848
```
4949
!!! Note
50-
Note that v1 CRDs are **not included** in `deploy-*.yaml` and `helm` chart by default.
51-
=== "v1beta1 CRDs"
52-
Install `gateway-api` `v1beta1` CRDs.
53-
```bash
54-
kubectl apply -f config/crds/bases/k8s-gateway-v0.6.1.yaml
55-
```
50+
Note that v1 CRDs are **not included** in `deploy-*.yaml` and `helm` chart.
5651

5752
And install additional CRDs for the controller:
5853

docs/guides/custom-domain-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VPC Lattice generates a unique Fully Qualified Domain Name (FQDN) for you; howev
66
If you'd prefer to use a custom domain name for a HTTPRoute, you can specify them in hostname field of HTTPRoute. Here is one example:
77

88
```yaml title="custom-domain-route.yaml" hl_lines="7"
9-
apiVersion: gateway.networking.k8s.io/v1alpha2
9+
apiVersion: gateway.networking.k8s.io/v1
1010
kind: HTTPRoute
1111
metadata:
1212
name: review

docs/guides/getstarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ This example creates a single cluster in a single VPC, then configures two HTTPR
120120
kubectl get httproute inventory -o yaml
121121
```
122122
``` hl_lines="5"
123-
apiVersion: gateway.networking.k8s.io/v1beta1
123+
apiVersion: gateway.networking.k8s.io/v1
124124
kind: HTTPRoute
125125
metadata:
126126
annotations:
@@ -132,7 +132,7 @@ This example creates a single cluster in a single VPC, then configures two HTTPR
132132
kubectl get httproute rates -o yaml
133133
```
134134
``` hl_lines="7"
135-
apiVersion: gateway.networking.k8s.io/v1beta1
135+
apiVersion: gateway.networking.k8s.io/v1
136136
kind: HTTPRoute
137137
metadata:
138138
annotations:

docs/guides/grpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ With `GRPCRoute`, you can ensure that your gRPC traffic is directed to the appro
88
Kubernetes environment.
99

1010
For a detailed reference on `GRPCRoute` from the Gateway API, please check the official
11-
[Gateway API documentation](https://gateway-api.sigs.k8s.io/references/spec/#networking.x-k8s.io/v1alpha2.GRPCRoute).
11+
[Gateway API documentation](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.GRPCRoute).
1212

1313
## Setting up a HelloWorld gRPC Server
1414

docs/guides/https.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ By adding https to the amazon-vpc-lattice gateway, you can tell the listener to
1010
The following modifications to the `files/examples/my-hotel-gateway.yaml` file add HTTPs communications:
1111

1212
```yaml title="my-hotel-gateway.yaml" hl_lines="11 12 13"
13-
apiVersion: gateway.networking.k8s.io/v1beta1
13+
apiVersion: gateway.networking.k8s.io/v1
1414
kind: Gateway
1515
metadata:
1616
name: my-hotel
@@ -29,7 +29,7 @@ spec:
2929
Next, the following modifications to the `files/examples/rate-route-path.yaml` file tell the `rates` HTTPRoute to use HTTPs for communications:
3030

3131
```yaml title="rate-route-path.yaml" hl_lines="10"
32-
apiVersion: gateway.networking.k8s.io/v1beta1
32+
apiVersion: gateway.networking.k8s.io/v1
3333
kind: HTTPRoute
3434
metadata:
3535
name: rates
@@ -55,7 +55,7 @@ If you want to use a custom domain name along with its own certificate, you can:
5555
The following shows modifications to `files/examples/my-hotel-gateway.yaml` to add a custom certificate:
5656

5757
```yaml title="my-hotel-gateway.yaml" hl_lines="16 17 18 19"
58-
apiVersion: gateway.networking.k8s.io/v1beta1
58+
apiVersion: gateway.networking.k8s.io/v1
5959
kind: Gateway
6060
metadata:
6161
name: my-hotel
@@ -82,7 +82,7 @@ Note that only `Terminate` mode is supported (Passthrough is not supported).
8282
Next, associate the HTTPRoute to the listener configuration you just configured:
8383

8484
```yaml title="rate-route-path.yaml" hl_lines="7"
85-
apiVersion: gateway.networking.k8s.io/v1beta1
85+
apiVersion: gateway.networking.k8s.io/v1
8686
kind: HTTPRoute
8787
metadata:
8888
name: rates

docs/guides/tls-passthrough.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ kubectl apply -f files/examples/my-gateway-tls-passthrough.yaml
2525

2626
```
2727
# tls listener config snips:
28-
apiVersion: gateway.networking.k8s.io/v1beta1
28+
apiVersion: gateway.networking.k8s.io/v1
2929
kind: Gateway
3030
metadata:
3131
name: my-hotel-tls-passthrough

0 commit comments

Comments
 (0)