-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,12 +78,11 @@ help: ## Display this help. | |
##@ Development | ||
|
||
.PHONY: manifests | ||
manifests: controller-gen helmify ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. | ||
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. | ||
$(CONTROLLER_GEN) rbac:roleName=rocketmq-operator crd:generateEmbeddedObjectMeta=true webhook paths="./..." output:dir=deploy output:crd:artifacts:config=deploy/crds | ||
head -n 14 deploy/role_binding.yaml > deploy/role.yaml.bak | ||
cat deploy/role.yaml >> deploy/role.yaml.bak | ||
rm deploy/role.yaml && mv deploy/role.yaml.bak deploy/role.yaml | ||
awk 'FNR==1 && NR!=1 {print "---"}{print}' deploy/*.yaml | helmify $(OPERATOR_CAHRT_DIR) | ||
mkdir -p $(OPERATOR_CAHRT_DIR)/crds/ && cp deploy/crds/* $(OPERATOR_CAHRT_DIR)/crds/ | ||
|
||
.PHONY: generate | ||
|
@@ -174,10 +173,6 @@ KUSTOMIZE = $(shell pwd)/bin/kustomize | |
kustomize: ## Download kustomize locally if necessary. | ||
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected]) | ||
|
||
HELMIFY = $(shell pwd)/bin/helmify | ||
helmify: | ||
$(call go-get-tool,$(HELMIFY),github.com/arttor/helmify/cmd/[email protected]) | ||
|
||
ENVTEST = $(shell pwd)/bin/setup-envtest | ||
.PHONY: envtest | ||
envtest: ## Download envtest-setup locally if necessary. | ||
|