Skip to content

Commit 4de29bb

Browse files
authored
fix(make): use server side apply to avoid hitting annotation max limit (#518)
Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
1 parent a95a7f6 commit 4de29bb

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
@@ -111,7 +111,7 @@ endif
111111

112112
.PHONY: install
113113
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
114-
$(KUSTOMIZE) build config/crd | kubectl apply -f -
114+
$(KUSTOMIZE) build config/crd | kubectl apply --server-side -f -
115115

116116
.PHONY: generate-manifests
117117
generate-manifests: manifests kustomize ## Generate manifests e.g. CRD, RBAC etc.
@@ -126,7 +126,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
126126
.PHONY: deploy
127127
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
128128
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
129-
$(KUSTOMIZE) build config/default | kubectl apply -f -
129+
$(KUSTOMIZE) build config/default | kubectl apply --server-side -f -
130130

131131
.PHONY: undeploy
132132
undeploy: ## 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)