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
2
2
3
3
GIT_VERSION ?= $(shell git log -1 --format="% h")
4
4
RELEASE_TAG := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true)
@@ -181,7 +181,7 @@ $(KUBEBUILDER):
181
181
mv /tmp/kubebuilder_$(KUBEBUILDER_VERSION ) _$(BUILDOS ) _$(BUILDARCH ) $(KUBEBUILDER_DIR )
182
182
183
183
# Run tests
184
- test : generate fmt vet manifests
184
+ test : generate fmt vet crds
185
185
go test ./... -coverprofile cover.out
186
186
187
187
# Run e2e tests
@@ -196,24 +196,24 @@ $(MANAGER): generate fmt vet
196
196
GOOS=$(OS ) GOARCH=$(ARCH ) $(GO ) build -o $@ .
197
197
198
198
# Run against the configured Kubernetes cluster in ~/.kube/config
199
- run : generate fmt vet manifests
199
+ run : generate fmt vet crds
200
200
go run ./main.go
201
201
202
202
# Install CRDs into a cluster
203
- install : manifests
203
+ install : crds
204
204
kustomize build config/crd | kubectl apply -f -
205
205
206
206
# Uninstall CRDs from a cluster
207
- uninstall : manifests
207
+ uninstall : crds
208
208
kustomize build config/crd | kubectl delete -f -
209
209
210
210
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
211
- deploy : manifests
211
+ deploy : crds
212
212
cd config/manager && kustomize edit set image controller=${IMG}
213
213
kustomize build config/default | kubectl apply -f -
214
214
215
215
# Generate manifests e.g. CRD, RBAC etc.
216
- manifests : controller-gen
216
+ crds : controller-gen
217
217
$(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
218
218
219
219
# Run go fmt against code
0 commit comments