Skip to content

Commit

Permalink
rename generate targets
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Mar 14, 2024
1 parent 2430495 commit b8b82d1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ help: ## Display this help.
## --------------------------------------

##@ Generate:
.PHONY: generate
generate: generate-manifests generate-code generate-mock

.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
.PHONY: generate-manifests
generate-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases

.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
.PHONY: generate-code
generate-code: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

.PHONY: generate-mock
Expand Down Expand Up @@ -137,11 +139,11 @@ docs:
##@ Testing:

.PHONY: test
test: manifests generate generate-mock fmt vet envtest ## Run tests.
test: generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -race -timeout 60s ./... -coverprofile cover.out

.PHONY: e2etest
e2etest: manifests generate local-deploy chainsaw
e2etest: generate local-deploy chainsaw
$(CHAINSAW) test ./e2e

local-deploy: kind ctlptl tilt kustomize clusterctl
Expand All @@ -154,7 +156,7 @@ local-deploy: kind ctlptl tilt kustomize clusterctl
## --------------------------------------

.PHONY: build
build: manifests generate fmt vet ## Build manager binary.
build: generate fmt vet ## Build manager binary.
go build -ldflags="-X github.com/linode/cluster-api-provider-linode/version.version=$(VERSION)" -o bin/manager cmd/main.go

# If you wish to build the manager image targeting other platforms you can use the --platform flag.
Expand Down

0 comments on commit b8b82d1

Please sign in to comment.