Skip to content

Commit 39caa2d

Browse files
committed
feat: Add shortcode for the latest version of NGINX Gateway Fabric
This commit adds a new shortcode to the layouts folder to store a string representing the latest version of NGINX Gateway Fabric. This means that instead of updating each file individually during a new release, only the shortcode file needs to be modified. It clarifies the versioning for documentation, which makes it easier to review - and also reduces the amount of drift when updating, in the case that a reference was overlooked. There may be old references that need to be updated to use this shortcode.
1 parent 4d1cbe3 commit 39caa2d

File tree

13 files changed

+49
-48
lines changed

13 files changed

+49
-48
lines changed

content/ngf/get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ make create-kind-cluster
9090
Use `kubectl` to add the API resources for NGINX Gateway Fabric with the following command:
9191

9292
```shell
93-
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v1.6.1" | kubectl apply -f -
93+
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v{{< version-ngf >}}" | kubectl apply -f -
9494
```
9595

9696
```text
@@ -105,7 +105,7 @@ customresourcedefinition.apiextensions.k8s.io/referencegrants.gateway.networking
105105
To use experimental features, you'll need to install the API resources from the experimental channel instead.
106106

107107
```shell
108-
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/experimental?ref=v1.6.1" | kubectl apply -f -
108+
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/experimental?ref=v{{< version-ngf >}}" | kubectl apply -f -
109109
```
110110

111111
{{< /note >}}
@@ -121,7 +121,7 @@ helm install ngf oci://ghcr.io/nginx/charts/nginx-gateway-fabric --create-namesp
121121
```
122122

123123
```text
124-
Pulled: ghcr.io/nginx/charts/nginx-gateway-fabric:1.6.1
124+
Pulled: ghcr.io/nginx/charts/nginx-gateway-fabric:{{< version-ngf >}}
125125
Digest: sha256:9bbd1a2fcbfd5407ad6be39f796f582e6263512f1f3a8969b427d39063cc6fee
126126
NAME: ngf
127127
LAST DEPLOYED: Mon Oct 21 14:45:14 2024
@@ -159,7 +159,7 @@ metadata:
159159
labels:
160160
app.kubernetes.io/name: nginx-gateway-fabric
161161
app.kubernetes.io/instance: ngf
162-
app.kubernetes.io/version: "1.6.1"
162+
app.kubernetes.io/version: "{{< version-ngf >}}"
163163
spec:
164164
type: NodePort
165165
selector:

content/ngf/how-to/monitoring/prometheus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ You can configure monitoring metrics for NGINX Gateway Fabric using Helm or Mani
119119

120120
### Using Helm
121121

122-
If you're setting up NGINX Gateway Fabric with Helm, you can adjust the `metrics.*` parameters to fit your needs. For detailed options and instructions, see the [Helm README](https://github.com/nginx/nginx-gateway-fabric/blob/v1.6.1/charts/nginx-gateway-fabric/README.md).
122+
If you're setting up NGINX Gateway Fabric with Helm, you can adjust the `metrics.*` parameters to fit your needs. For detailed options and instructions, see the [Helm README](https://github.com/nginx/nginx-gateway-fabric/blob/v{{< version-ngf >}}/charts/nginx-gateway-fabric/README.md).
123123

124124
---
125125

126126
### Using Kubernetes manifests
127127

128-
For setups using Kubernetes manifests, change the metrics configuration by editing the NGINX Gateway Fabric manifest that you want to deploy. You can find some examples in the [deploy](https://github.com/nginx/nginx-gateway-fabric/tree/v1.6.1/deploy) directory.
128+
For setups using Kubernetes manifests, change the metrics configuration by editing the NGINX Gateway Fabric manifest that you want to deploy. You can find some examples in the [deploy](https://github.com/nginx/nginx-gateway-fabric/tree/v{{< version-ngf >}}/deploy) directory.
129129

130130
---
131131

content/ngf/how-to/traffic-management/advanced-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The goal is to create a set of rules that will result in client requests being s
4444
Begin by deploying the `coffee-v1` and `coffee-v2` applications:
4545

4646
```shell
47-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/advanced-routing/coffee.yaml
47+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/advanced-routing/coffee.yaml
4848
```
4949

5050
---
@@ -172,7 +172,7 @@ Let's deploy a different set of applications now called `tea` and `tea-post`. Th
172172
### Deploy the Tea applications
173173

174174
```shell
175-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/advanced-routing/tea.yaml
175+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/advanced-routing/tea.yaml
176176
```
177177

178178
---

content/ngf/how-to/traffic-management/client-settings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ For all the possible configuration options for `ClientSettingsPolicy`, see the [
5151
- Create the coffee and tea example applications:
5252

5353
```yaml
54-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/client-settings-policy/app.yaml
54+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/client-settings-policy/app.yaml
5555
```
5656

5757
- Create a Gateway:
5858

5959
```yaml
60-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/client-settings-policy/gateway.yaml
60+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/client-settings-policy/gateway.yaml
6161
```
6262

6363
- Create HTTPRoutes for the coffee and tea applications:
6464

6565
```yaml
66-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/client-settings-policy/httproutes.yaml
66+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/client-settings-policy/httproutes.yaml
6767
```
6868

6969
- Test the configuration:

content/ngf/how-to/traffic-management/request-response-headers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This examples demonstrates how to configure traffic routing for a simple echo se
6767
Begin by deploying the example application `headers`. It is a simple application that returns the request headers which will be modified later.
6868

6969
```shell
70-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/http-request-header-filter/headers.yaml
70+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/http-request-header-filter/headers.yaml
7171
```
7272

7373
This will create the headers Service and a Deployment with one Pod. Run the following command to verify the resources were created:
@@ -179,7 +179,7 @@ kubectl delete httproutes.gateway.networking.k8s.io headers
179179
```
180180

181181
```shell
182-
kubectl delete -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/http-request-header-filter/headers.yaml
182+
kubectl delete -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/http-request-header-filter/headers.yaml
183183
```
184184

185185
---
@@ -195,7 +195,7 @@ Begin by configuring an application with custom headers and a simple HTTPRoute.
195195
Begin by deploying the example application `headers`. It is a simple application that adds response headers that will be modified later.
196196

197197
```shell
198-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/http-response-header-filter/headers.yaml
198+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/http-response-header-filter/headers.yaml
199199
```
200200

201201
This will create the headers Service and a Deployment with one Pod. Run the following command to verify the resources were created:

content/ngf/how-to/traffic-management/snippets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ We have outlined a few best practices to keep in mind when using `SnippetsFilter
7676
- Create the coffee and tea example applications:
7777

7878
```yaml
79-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/snippets-filter/app.yaml
79+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/snippets-filter/app.yaml
8080
```
8181

8282
- Create a Gateway:
8383

8484
```yaml
85-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/snippets-filter/gateway.yaml
85+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/snippets-filter/gateway.yaml
8686
```
8787

8888
- Create HTTPRoutes for the coffee and tea applications:
8989

9090
```yaml
91-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/examples/snippets-filter/httproutes.yaml
91+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/examples/snippets-filter/httproutes.yaml
9292
```
9393

9494
- Test the configuration:

content/ngf/how-to/upgrade-apps-without-downtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ For example, an application can be exposed using a routing rule like below:
6666
port: 80
6767
```
6868
69-
{{< note >}} See the [Cafe example](https://github.com/nginx/nginx-gateway-fabric/tree/v1.6.1/examples/cafe-example) for a basic example. {{< /note >}}
69+
{{< note >}} See the [Cafe example](https://github.com/nginx/nginx-gateway-fabric/tree/v{{< version-ngf >}}/examples/cafe-example) for a basic example. {{< /note >}}
7070
7171
The upgrade methods in the next sections cover:
7272
@@ -137,4 +137,4 @@ By updating the rule you can further increase the share of traffic the new versi
137137
weight: 1
138138
```
139139

140-
See the [Traffic splitting example](https://github.com/nginx/nginx-gateway-fabric/tree/v1.6.1/examples/traffic-splitting) from our repository.
140+
See the [Traffic splitting example](https://github.com/nginx/nginx-gateway-fabric/tree/v{{< version-ngf >}}/examples/traffic-splitting) from our repository.

content/ngf/installation/building-the-images.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If building the NGINX Plus image, you will also need a valid NGINX Plus license
3232
1. Clone the repo and change into the `nginx-gateway-fabric` directory:
3333

3434
```shell
35-
git clone https://github.com/nginx/nginx-gateway-fabric.git --branch v1.6.1
35+
git clone https://github.com/nginx/nginx-gateway-fabric.git --branch v{{< version-ngf >}}
3636
cd nginx-gateway-fabric
3737
```
3838

@@ -69,20 +69,20 @@ If building the NGINX Plus image, you will also need a valid NGINX Plus license
6969
```
7070

7171
Set the `PREFIX` variable to the name of the registry you'd like to push the image to. By default, the images will be
72-
named `nginx-gateway-fabric:1.6.1` and `nginx-gateway-fabric/nginx:1.6.1` or `nginx-gateway-fabric/nginx-plus:1.6.1`.
72+
named `nginx-gateway-fabric:{{< version-ngf >}}` and `nginx-gateway-fabric/nginx:{{< version-ngf >}}` or `nginx-gateway-fabric/nginx-plus:{{< version-ngf >}}`.
7373

7474
1. Push the images to your container registry:
7575

7676
```shell
77-
docker push myregistry.example.com/nginx-gateway-fabric:1.6.1
78-
docker push myregistry.example.com/nginx-gateway-fabric/nginx:1.6.1
77+
docker push myregistry.example.com/nginx-gateway-fabric:{{< version-ngf >}}
78+
docker push myregistry.example.com/nginx-gateway-fabric/nginx:{{< version-ngf >}}
7979
```
8080

8181
or
8282

8383
```shell
84-
docker push myregistry.example.com/nginx-gateway-fabric:1.6.1
85-
docker push myregistry.example.com/nginx-gateway-fabric/nginx-plus:1.6.1
84+
docker push myregistry.example.com/nginx-gateway-fabric:{{< version-ngf >}}
85+
docker push myregistry.example.com/nginx-gateway-fabric/nginx-plus:{{< version-ngf >}}
8686
```
8787

8888
Make sure to substitute `myregistry.example.com/nginx-gateway-fabric` with your registry.

content/ngf/installation/installing-ngf/helm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ helm install ngf oci://ghcr.io/nginx/charts/nginx-gateway-fabric --create-namesp
175175

176176
#### Examples
177177

178-
You can find several examples of configuration options of the `values.yaml` file in the [helm examples](https://github.com/nginx/nginx-gateway-fabric/tree/v1.6.1/examples/helm) directory.
178+
You can find several examples of configuration options of the `values.yaml` file in the [helm examples](https://github.com/nginx/nginx-gateway-fabric/tree/v{{< version-ngf >}}/examples/helm) directory.
179179

180180
---
181181

@@ -202,13 +202,13 @@ To upgrade your Gateway API resources, take the following steps:
202202
- To upgrade the Gateway API resources, run:
203203

204204
```shell
205-
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v1.6.1" | kubectl apply -f -
205+
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v{{< version-ngf >}}" | kubectl apply -f -
206206
```
207207

208208
or, if you installed the from the experimental channel:
209209

210210
```shell
211-
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/experimental?ref=v1.6.1" | kubectl apply -f -
211+
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/experimental?ref=v{{< version-ngf >}}" | kubectl apply -f -
212212
```
213213

214214
---
@@ -224,7 +224,7 @@ To upgrade the CRDs, take the following steps:
224224
2. Upgrade the CRDs:
225225

226226
```shell
227-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/crds.yaml
227+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/crds.yaml
228228
```
229229

230230
{{<note>}}Ignore the following warning, as it is expected.{{</note>}}
@@ -355,7 +355,7 @@ Follow these steps to uninstall NGINX Gateway Fabric and Gateway API from your K
355355

356356
```shell
357357
kubectl delete ns nginx-gateway
358-
kubectl delete -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/crds.yaml
358+
kubectl delete -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/crds.yaml
359359
```
360360

361361
3. **Remove the Gateway API resources:**
@@ -366,4 +366,4 @@ Follow these steps to uninstall NGINX Gateway Fabric and Gateway API from your K
366366

367367
## Additional configuration
368368

369-
For a full list of the Helm Chart configuration parameters, read [the NGINX Gateway Fabric Helm Chart](https://github.com/nginx/nginx-gateway-fabric/blob/v1.6.1/charts/nginx-gateway-fabric/README.md#configuration).
369+
For a full list of the Helm Chart configuration parameters, read [the NGINX Gateway Fabric Helm Chart](https://github.com/nginx/nginx-gateway-fabric/blob/v{{< version-ngf >}}/charts/nginx-gateway-fabric/README.md#configuration).

content/ngf/installation/installing-ngf/manifests.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Deploying NGINX Gateway Fabric with Kubernetes manifests takes only a few steps.
6464
#### Stable release
6565

6666
```shell
67-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/crds.yaml
67+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/crds.yaml
6868
```
6969

7070
#### Edge version
@@ -86,7 +86,7 @@ kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/ma
8686
Deploys NGINX Gateway Fabric with NGINX OSS.
8787

8888
```shell
89-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/default/deploy.yaml
89+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/default/deploy.yaml
9090
```
9191

9292
{{% /tab %}}
@@ -96,7 +96,7 @@ kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1
9696
Deploys NGINX Gateway Fabric with NGINX OSS and an AWS Network Load Balancer service.
9797

9898
```shell
99-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/aws-nlb/deploy.yaml
99+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/aws-nlb/deploy.yaml
100100
```
101101

102102
{{% /tab %}}
@@ -106,7 +106,7 @@ kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1
106106
Deploys NGINX Gateway Fabric with NGINX OSS and `nodeSelector` to deploy on Linux nodes.
107107

108108
```shell
109-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/azure/deploy.yaml
109+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/azure/deploy.yaml
110110
```
111111

112112
{{% /tab %}}
@@ -118,7 +118,7 @@ NGINX Plus Docker registry, and the `imagePullSecretName` is the name of the Sec
118118
The NGINX Plus JWT Secret used to run NGINX Plus is also specified in a volume mount and the `--usage-report-secret` parameter. These Secrets are created as part of the [Before you begin](#before-you-begin) section.
119119

120120
```shell
121-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/nginx-plus/deploy.yaml
121+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/nginx-plus/deploy.yaml
122122
```
123123

124124
{{% /tab %}}
@@ -128,7 +128,7 @@ kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1
128128
Deploys NGINX Gateway Fabric with NGINX OSS and experimental features.
129129

130130
```shell
131-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/experimental/deploy.yaml
131+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/experimental/deploy.yaml
132132
```
133133

134134
{{< note >}} Requires the Gateway APIs installed from the experimental channel. {{< /note >}}
@@ -142,7 +142,7 @@ NGINX Plus Docker registry, and the `imagePullSecretName` is the name of the Sec
142142
The NGINX Plus JWT Secret used to run NGINX Plus is also specified in a volume mount and the `--usage-report-secret` parameter. These Secrets are created as part of the [Before you begin](#before-you-begin) section.
143143

144144
```shell
145-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/nginx-plus-experimental/deploy.yaml
145+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/nginx-plus-experimental/deploy.yaml
146146
```
147147

148148
{{< note >}} Requires the Gateway APIs installed from the experimental channel. {{< /note >}}
@@ -154,7 +154,7 @@ kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1
154154
Deploys NGINX Gateway Fabric with NGINX OSS using a Service type of `NodePort`.
155155

156156
```shell
157-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/nodeport/deploy.yaml
157+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/nodeport/deploy.yaml
158158
```
159159

160160
{{% /tab %}}
@@ -164,7 +164,7 @@ kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1
164164
Deploys NGINX Gateway Fabric with NGINX OSS on OpenShift.
165165

166166
```shell
167-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/openshift/deploy.yaml
167+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/openshift/deploy.yaml
168168
```
169169

170170
{{% /tab %}}
@@ -212,21 +212,21 @@ To upgrade NGINX Gateway Fabric and get the latest features and improvements, ta
212212
- To upgrade the Gateway API resources, run:
213213

214214
```shell
215-
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v1.6.1" | kubectl apply -f -
215+
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v{{< version-ngf >}}" | kubectl apply -f -
216216
```
217217

218218
or, if you installed the from the experimental channel:
219219

220220
```shell
221-
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/experimental?ref=v1.6.1" | kubectl apply -f -
221+
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/experimental?ref=v{{< version-ngf >}}" | kubectl apply -f -
222222
```
223223

224224
1. **Upgrade NGINX Gateway Fabric CRDs:**
225225

226226
- To upgrade the Custom Resource Definitions (CRDs), run:
227227

228228
```shell
229-
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/crds.yaml
229+
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/crds.yaml
230230
```
231231

232232
1. **Upgrade NGINX Gateway Fabric deployment:**
@@ -301,7 +301,7 @@ Follow these steps to uninstall NGINX Gateway Fabric and Gateway API from your K
301301
```
302302

303303
```shell
304-
kubectl delete -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v1.6.1/deploy/crds.yaml
304+
kubectl delete -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/crds.yaml
305305
```
306306

307307
1. **Remove the Gateway API resources:**

0 commit comments

Comments
 (0)