diff --git a/Makefile b/Makefile index bf1e686..13a7514 100644 --- a/Makefile +++ b/Makefile @@ -56,16 +56,19 @@ help: ## Display this help. ##@ Development +.PHONY: generate +generate: codegen manifests fmt ## Generate code, documentation, etc + +.PHONY: codegen +codegen: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. + $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/..." + .PHONY: manifests manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. $(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./api/..." output:crd:artifacts:config=config/crd/bases $(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/controller/telemetry/..." output:rbac:artifacts:config=./config/rbac cp config/crd/bases/* charts/telemetry-controller/crds/ -.PHONY: generate -generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. - $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/..." - .PHONY: fmt fmt: ## Run go fmt against code. go fmt ./...