Skip to content

Commit 99b767d

Browse files
stubbiclaude
andcommitted
fix: use server-side apply for CRD installation
The CRD exceeds the 256KB annotation limit for client-side apply (kubectl.kubernetes.io/last-applied-configuration). Server-side apply avoids this by using managed fields instead of annotations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 03bc4f2 commit 99b767d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ endif
217217

218218
.PHONY: install
219219
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
220-
$(KUSTOMIZE) build config/crd | $(KUBECTL) apply -f -
220+
$(KUSTOMIZE) build config/crd | $(KUBECTL) apply --server-side --force-conflicts -f -
221221

222222
.PHONY: uninstall
223223
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
@@ -226,7 +226,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
226226
.PHONY: deploy
227227
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
228228
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
229-
$(KUSTOMIZE) build config/default | $(KUBECTL) apply -f -
229+
$(KUSTOMIZE) build config/default | $(KUBECTL) apply --server-side --force-conflicts -f -
230230

231231
.PHONY: undeploy
232232
undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.

0 commit comments

Comments
 (0)