Skip to content

Commit

Permalink
fix makefile gen path and cleanup (#292)
Browse files Browse the repository at this point in the history
fix makefile gen path and noused dep
  • Loading branch information
freeznet authored Mar 7, 2025
1 parent 9ce300d commit d6a38eb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ help: ## Display this help.

.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./api/..." 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="./api/..."

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

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

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

.PHONY: docker-build
Expand Down Expand Up @@ -322,7 +322,3 @@ copy-crds:
# Sync rules from config/rbac/role.yaml to charts/pulsar-resources-operator/templates/role.yaml
@echo "Syncing rules section from config/rbac/role.yaml to charts/pulsar-resources-operator/templates/role.yaml"
@./scripts/sync_rules.py config/rbac/role.yaml charts/pulsar-resources-operator/templates/role.yaml

.PHONY: code-generator
code-generator:
git submodule update --init

0 comments on commit d6a38eb

Please sign in to comment.