Skip to content

Commit 7d9d72c

Browse files
committed
Use server side apply for NGF CRDs
1 parent ad133d8 commit 7d9d72c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ generate-crds: ## Generate CRDs and Go types using kubebuilder
126126

127127
.PHONY: install-crds
128128
install-crds: ## Install CRDs
129-
kubectl kustomize $(SELF_DIR)config/crd | kubectl apply -f -
129+
kubectl kustomize $(SELF_DIR)config/crd | kubectl apply --server-side -f -
130130

131131
.PHONY: install-gateway-crds
132132
install-gateway-crds: ## Install Gateway API CRDs

charts/nginx-gateway-fabric/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Helm does not upgrade the NGINX Gateway Fabric CRDs during a release upgrade. Be
139139
must [pull the chart](#pulling-the-chart) from GitHub and run the following command to upgrade the CRDs:
140140

141141
```shell
142-
kubectl apply -f crds/
142+
kubectl apply --server-side -f crds/
143143
```
144144

145145
The following warning is expected and can be ignored:

docs/developer/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ This will build the docker images `nginx-gateway-fabric:<your-user>` and `nginx-
201201
If the only change is the image repository and tag, you can update the `kustomization.yaml` file in `deploy/` with the desired values and deployment mainifest and run the following commands:
202202

203203
```shell
204-
kubectl apply -f deploy/crds.yaml
204+
kubectl apply --server-side -f deploy/crds.yaml
205205
kubectl kustomize deploy | kubectl apply -f -
206206
```
207207

0 commit comments

Comments
 (0)