Skip to content

Commit

Permalink
fix make install failure
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Oct 10, 2022
1 parent 6a85d87 commit ffd598c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ run: generate fmt vet manifests
go run ./main.go

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

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

# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
Expand Down

0 comments on commit ffd598c

Please sign in to comment.