File tree 1 file changed +5
-2
lines changed
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
26
26
go run ./main.go
27
27
28
28
# 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+
29
32
install : manifests
30
- kustomize build config/crd | kubectl apply -f -
33
+ kustomize build config/crd | kubectl apply --server-side --force-conflicts - f -
31
34
32
35
# Uninstall CRDs from a cluster
33
36
uninstall : manifests
@@ -36,7 +39,7 @@ uninstall: manifests
36
39
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
37
40
deploy : manifests
38
41
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 -
40
43
41
44
# Generate manifests e.g. CRD, RBAC etc.
42
45
manifests : controller-gen
You can’t perform that action at this time.
0 commit comments