Skip to content

Commit c83f664

Browse files
committed
Update API version in gateway manifests to align with gwapi 1.1
Signed-off-by: Addo.Zhang <duwasai@gmail.com> Signed-off-by: Addo.Zhang <duwasai@gmail.com>
1 parent 5542d0f commit c83f664

21 files changed

+40
-40
lines changed

content/en/guides/traffic_management/ingress/fsm_gateway/access_control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Before setting up the access control policy, we add a route with the path prefix
131131

132132
```shell
133133
kubectl apply -n httpbin -f - <<EOF
134-
apiVersion: gateway.networking.k8s.io/v1beta1
134+
apiVersion: gateway.networking.k8s.io/v1
135135
kind: HTTPRoute
136136
metadata:
137137
name: http-route-foo

content/en/guides/traffic_management/ingress/fsm_gateway/fault_injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ We add a route under the HTTP route `foo.example.com` with a path prefix `/heade
6767

6868
```shell
6969
kubectl apply -n httpbin -f - <<EOF
70-
apiVersion: gateway.networking.k8s.io/v1beta1
70+
apiVersion: gateway.networking.k8s.io/v1
7171
kind: HTTPRoute
7272
metadata:
7373
name: http-route-foo

content/en/guides/traffic_management/ingress/fsm_gateway/health_check.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Next, create a gateway and set up routes for the Service pipy.
6969

7070
```shell
7171
kubectl apply -n server -f - <<EOF
72-
apiVersion: gateway.networking.k8s.io/v1beta1
72+
apiVersion: gateway.networking.k8s.io/v1
7373
kind: Gateway
7474
metadata:
7575
name: simple-fsm-gateway
@@ -83,7 +83,7 @@ spec:
8383
namespaces:
8484
from: Same
8585
---
86-
apiVersion: gateway.networking.k8s.io/v1beta1
86+
apiVersion: gateway.networking.k8s.io/v1
8787
kind: HTTPRoute
8888
metadata:
8989
name: fortio-route

content/en/guides/traffic_management/ingress/fsm_gateway/http_redirect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ curl bar.example.com/get
5858
The HTTP status code `3XX` are used to redirect client to another address. We can redirect all requests to `foo.example.com` to `bar.example.com` by responding `301` status and new hostname.
5959

6060
```bash
61-
apiVersion: gateway.networking.k8s.io/v1beta1
61+
apiVersion: gateway.networking.k8s.io/v1
6262
kind: HTTPRoute
6363
metadata:
6464
name: http-route-foo
@@ -116,7 +116,7 @@ curl -L http://foo.example.com:8000/get
116116
With path redirection, we can implement what we did with [URL Rewriting](/guides/traffic_management/ingress/fsm_gateway/http_url_rewrite/#replace-url-prefix-path): redirect the request to `/status/{n}` to `/stream/{n}`.
117117

118118
```bash
119-
apiVersion: gateway.networking.k8s.io/v1beta1
119+
apiVersion: gateway.networking.k8s.io/v1
120120
kind: HTTPRoute
121121
metadata:
122122
name: http-route-foo
@@ -162,7 +162,7 @@ connection: keep-alive
162162
We can also change full path during redirecting, such as redirect all `/status/xxx` to `/status/200`.
163163

164164
```bash
165-
apiVersion: gateway.networking.k8s.io/v1beta1
165+
apiVersion: gateway.networking.k8s.io/v1
166166
kind: HTTPRoute
167167
metadata:
168168
name: http-route-foo

content/en/guides/traffic_management/ingress/fsm_gateway/http_request_header_manipulate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Modifying the `HTTPRoute` `http-route-foo` and add `RequestHeaderModifier` filte
4646

4747
```yaml
4848
kubectl apply -n httpbin -f - <<EOF
49-
apiVersion: gateway.networking.k8s.io/v1beta1
49+
apiVersion: gateway.networking.k8s.io/v1
5050
kind: HTTPRoute
5151
metadata:
5252
name: http-route-foo
@@ -98,7 +98,7 @@ Let's update the `HTTPRoute` resource again and set two headers with new value.
9898

9999
```yaml
100100
kubectl apply -n httpbin -f - <<EOF
101-
apiVersion: gateway.networking.k8s.io/v1beta1
101+
apiVersion: gateway.networking.k8s.io/v1
102102
kind: HTTPRoute
103103
metadata:
104104
name: http-route-foo
@@ -150,7 +150,7 @@ Let's update the `HTTPRoute` resource to remove `user-agent` header directly to
150150

151151
```yaml
152152
kubectl apply -n httpbin -f - <<EOF
153-
apiVersion: gateway.networking.k8s.io/v1beta1
153+
apiVersion: gateway.networking.k8s.io/v1
154154
kind: HTTPRoute
155155
metadata:
156156
name: http-route-foo

content/en/guides/traffic_management/ingress/fsm_gateway/http_response_header_manipulate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Modifying the `HTTPRoute` `http-route-foo` and add `ResponseHeaderModifier` filt
4646

4747
```yaml
4848
kubectl apply -n httpbin -f - <<EOF
49-
apiVersion: gateway.networking.k8s.io/v1beta1
49+
apiVersion: gateway.networking.k8s.io/v1
5050
kind: HTTPRoute
5151
metadata:
5252
name: http-route-foo
@@ -96,7 +96,7 @@ Let's update the `HTTPRoute` resource again and set two headers with new value.
9696

9797
```yaml
9898
kubectl apply -n httpbin -f - <<EOF
99-
apiVersion: gateway.networking.k8s.io/v1beta1
99+
apiVersion: gateway.networking.k8s.io/v1
100100
kind: HTTPRoute
101101
metadata:
102102
name: http-route-foo
@@ -148,7 +148,7 @@ Let's update the `HTTPRoute` resource to remove `server` header directly to hide
148148

149149
```yaml
150150
kubectl apply -n httpbin -f - <<EOF
151-
apiVersion: gateway.networking.k8s.io/v1beta1
151+
apiVersion: gateway.networking.k8s.io/v1
152152
kind: HTTPRoute
153153
metadata:
154154
name: http-route-foo

content/en/guides/traffic_management/ingress/fsm_gateway/http_url_rewrite.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Example bellow will replace the `/get` path to `/headers` path.
4242

4343
```yaml
4444
kubectl apply -n httpbin -f - <<EOF
45-
apiVersion: gateway.networking.k8s.io/v1beta1
45+
apiVersion: gateway.networking.k8s.io/v1
4646
kind: HTTPRoute
4747
metadata:
4848
name: http-route-foo
@@ -107,7 +107,7 @@ If we hope to change the behavior of `/status` to `/stream`, the rule is require
107107

108108
```bash
109109
kubectl apply -n httpbin -f - <<EOF
110-
apiVersion: gateway.networking.k8s.io/v1beta1
110+
apiVersion: gateway.networking.k8s.io/v1
111111
kind: HTTPRoute
112112
metadata:
113113
name: http-route-foo
@@ -155,7 +155,7 @@ Let's follow the example rule below. It will replace host name from `foo.example
155155

156156
```bash
157157
kubectl apply -n httpbin -f - <<EOF
158-
apiVersion: gateway.networking.k8s.io/v1beta1
158+
apiVersion: gateway.networking.k8s.io/v1
159159
kind: HTTPRoute
160160
metadata:
161161
name: http-route-foo

content/en/guides/traffic_management/ingress/fsm_gateway/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ To create a FSM gateway, we need to create `Gateway` resource. This manifest wil
5555

5656
```bash
5757
kubectl apply -n fsm-system -f - <<EOF
58-
apiVersion: gateway.networking.k8s.io/v1beta1
58+
apiVersion: gateway.networking.k8s.io/v1
5959
kind: Gateway
6060
metadata:
6161
name: simple-fsm-gateway
@@ -97,7 +97,7 @@ That's why we have not configure any route. Let's create a `HTTRoute` for the `S
9797

9898
```bash
9999
kubectl apply -n fsm-system -f - <<EOF
100-
apiVersion: gateway.networking.k8s.io/v1beta1
100+
apiVersion: gateway.networking.k8s.io/v1
101101
kind: HTTPRoute
102102
metadata:
103103
name: repo

content/en/guides/traffic_management/ingress/fsm_gateway/loadbalancing_algorithm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Next, create a gateway and set up routes for the Service pipy.
7373

7474
```shell
7575
kubectl apply -n server -f - <<EOF
76-
apiVersion: gateway.networking.k8s.io/v1beta1
76+
apiVersion: gateway.networking.k8s.io/v1
7777
kind: Gateway
7878
metadata:
7979
name: simple-fsm-gateway
@@ -87,7 +87,7 @@ spec:
8787
namespaces:
8888
from: Same
8989
---
90-
apiVersion: gateway.networking.k8s.io/v1beta1
90+
apiVersion: gateway.networking.k8s.io/v1
9191
kind: HTTPRoute
9292
metadata:
9393
name: fortio-route

content/en/guides/traffic_management/ingress/fsm_gateway/rate_limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Before configuring the access policy,
223223

224224
```shell
225225
kubectl apply -n httpbin -f - <<EOF
226-
apiVersion: gateway.networking.k8s.io/v1beta1
226+
apiVersion: gateway.networking.k8s.io/v1
227227
kind: HTTPRoute
228228
metadata:
229229
name: http-route-foo

0 commit comments

Comments
 (0)