From f34e1bda63a8ae0691bfea72f0854c6f6975fd28 Mon Sep 17 00:00:00 2001 From: Dustin Scott Date: Fri, 19 Apr 2024 09:05:11 -0500 Subject: [PATCH] feat: update makefile to only include relevant paths This includes only the relevant paths for controller-gen. This is useful when preserving assets. Signed-off-by: Dustin Scott --- internal/plugins/workload/v1/scaffolds/templates/makefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/plugins/workload/v1/scaffolds/templates/makefile.go b/internal/plugins/workload/v1/scaffolds/templates/makefile.go index 716ca44..e7685b1 100644 --- a/internal/plugins/workload/v1/scaffolds/templates/makefile.go +++ b/internal/plugins/workload/v1/scaffolds/templates/makefile.go @@ -93,11 +93,11 @@ all: build .PHONY: manifests manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. - $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases + $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./apis/..." paths="./controllers/..." paths="./internal/..." output:crd:artifacts:config=config/crd/bases .PHONY: generate generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. - $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." + $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./apis/..." .PHONY: fmt fmt: ## Run go fmt against code.