Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 234b1c2

Browse files
authored
Merge pull request #82 from packethost/reduce-makefile-confusion
rename manifests target to crds to reduce confusion
2 parents 8f9cf36 + 4acdeb2 commit 234b1c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
GIT_VERSION ?= $(shell git log -1 --format="%h")
44
RELEASE_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

Comments
 (0)