1- .PHONY : vendor test manager clusterctl run install deploy manifests generate fmt vet run kubebuilder ci cd
1+ .PHONY : vendor test manager clusterctl run install deploy crds generate fmt vet run kubebuilder ci cd
22
33GIT_VERSION ?= $(shell git log -1 --format="% h")
44RELEASE_TAG := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true)
@@ -181,7 +181,7 @@ $(KUBEBUILDER):
181181 mv /tmp/kubebuilder_$(KUBEBUILDER_VERSION ) _$(BUILDOS ) _$(BUILDARCH ) $(KUBEBUILDER_DIR )
182182
183183# Run tests
184- test : generate fmt vet manifests
184+ test : generate fmt vet crds
185185 go test ./... -coverprofile cover.out
186186
187187# Run e2e tests
@@ -196,24 +196,24 @@ $(MANAGER): generate fmt vet
196196 GOOS=$(OS ) GOARCH=$(ARCH ) $(GO ) build -o $@ .
197197
198198# Run against the configured Kubernetes cluster in ~/.kube/config
199- run : generate fmt vet manifests
199+ run : generate fmt vet crds
200200 go run ./main.go
201201
202202# Install CRDs into a cluster
203- install : manifests
203+ install : crds
204204 kustomize build config/crd | kubectl apply -f -
205205
206206# Uninstall CRDs from a cluster
207- uninstall : manifests
207+ uninstall : crds
208208 kustomize build config/crd | kubectl delete -f -
209209
210210# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
211- deploy : manifests
211+ deploy : crds
212212 cd config/manager && kustomize edit set image controller=${IMG}
213213 kustomize build config/default | kubectl apply -f -
214214
215215# Generate manifests e.g. CRD, RBAC etc.
216- manifests : controller-gen
216+ crds : controller-gen
217217 $(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
218218
219219# Run go fmt against code
0 commit comments