File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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+
2932install : 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
3336uninstall : manifests
@@ -36,7 +39,7 @@ uninstall: manifests
3639# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3740deploy : 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.
4245manifests : controller-gen
You can’t perform that action at this time.
0 commit comments