Skip to content

Commit ca0e373

Browse files
freeznetThomasVerhoeven1998
authored andcommitted
fix makefile gen path and cleanup (streamnative#292)
fix makefile gen path and noused dep
1 parent 183aa60 commit ca0e373

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ help: ## Display this help.
101101

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

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

110110
.PHONY: generate-internal
111-
generate-internal: code-generator
111+
generate-internal: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
112112
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./pkg/streamnativecloud/apis/..."
113113
./hack/update-codegen.sh
114114

@@ -131,7 +131,7 @@ build: generate generate-internal fmt vet license-fix ## Build manager binary.
131131
go build -o bin/manager main.go
132132

133133
.PHONY: run
134-
run: manifests generate generate-internal fmt vet ## Run a controller from your host.
134+
run: manifests generate generate-internal fmt vet license-fix ## Run a controller from your host.
135135
go run ./main.go
136136

137137
.PHONY: docker-build
@@ -322,7 +322,3 @@ copy-crds:
322322
# Sync rules from config/rbac/role.yaml to charts/pulsar-resources-operator/templates/role.yaml
323323
@echo "Syncing rules section from config/rbac/role.yaml to charts/pulsar-resources-operator/templates/role.yaml"
324324
@./scripts/sync_rules.py config/rbac/role.yaml charts/pulsar-resources-operator/templates/role.yaml
325-
326-
.PHONY: code-generator
327-
code-generator:
328-
git submodule update --init

0 commit comments

Comments
 (0)