Skip to content

Commit

Permalink
feat: update makefile to only include relevant paths
Browse files Browse the repository at this point in the history
This includes only the relevant paths for controller-gen.  This is useful when preserving
assets.

Signed-off-by: Dustin Scott <[email protected]>
  • Loading branch information
scottd018 committed Jul 3, 2024
1 parent 31b4788 commit f34e1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/plugins/workload/v1/scaffolds/templates/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f34e1bd

Please sign in to comment.