Skip to content

Commit

Permalink
Fix kubectl replace-create crds bug when make install (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartam1 authored Oct 6, 2022
1 parent b22016f commit b0d2336
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ run: generate fmt vet manifests
# Install CRDs into a cluster by manually creating or replacing the CRD depending on whether is currently existing
# Apply is not applicable as the last-applied-configuration annotation would exceed the size limit enforced by the api server
install: manifests
ifeq ($(shell kubectl get -f config/base/crds >/dev/null 2>&1; echo $$?), 1)
kubectl create -f config/base/crds
else
kubectl replace -f config/base/crds
endif
kubectl create -f config/base/crds || kubectl replace -f config/base/crds

# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
deploy: install-kustomize install
Expand Down

0 comments on commit b0d2336

Please sign in to comment.