Skip to content

Commit ffd598c

Browse files
committed
fix make install failure
1 parent 6a85d87 commit ffd598c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ run: generate fmt vet manifests
2626
go run ./main.go
2727

2828
# Install CRDs into a cluster
29+
# Using --server-side flag as CRD is too large to set the last-applied-configuration
30+
# annotation that kubectl apply automatically creates on client side
31+
# Server side apply is supported in k8s version 1.18+
2932
install: manifests
30-
kustomize build config/crd | kubectl apply -f -
33+
kustomize build config/crd | kubectl apply --server-side --force-conflicts -f -
3134

3235
# Uninstall CRDs from a cluster
3336
uninstall: manifests
@@ -36,7 +39,7 @@ uninstall: manifests
3639
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3740
deploy: manifests
3841
cd config/manager && kustomize edit set image controller=${IMG}
39-
kustomize build config/default | kubectl apply -f -
42+
kustomize build config/default | kubectl apply --server-side --force-conflicts -f -
4043

4144
# Generate manifests e.g. CRD, RBAC etc.
4245
manifests: controller-gen

0 commit comments

Comments
 (0)