@@ -101,14 +101,14 @@ help: ## Display this help.
101101
102102.PHONY : manifests
103103manifests : 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
107107generate : 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