File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,12 @@ tidy: #HELP Update dependencies.
100100 $(Q ) go mod tidy -go=$(GOLANG_VERSION )
101101
102102.PHONY : manifests
103- manifests : $(CONTROLLER_GEN ) # EXHELP Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
104- $(CONTROLLER_GEN ) rbac:roleName=manager-role crd webhook paths=" ./..." output:crd:artifacts:config=config/base/crd/bases output:rbac:artifacts:config=config/base/rbac
103+ # To exclude catalogd. Otherwise, the CRD, Webhook and other configurations will be generated and added to the config/
104+ PATHS = ./api/... ./cmd/... ./internal/... ./test/...
105+ manifests : $(CONTROLLER_GEN ) # EXHELP Generate WebhookConfiguration, ClusterRole, and CustomResourceDefinition objects.
106+ @for path in $(PATHS ) ; do \
107+ $(CONTROLLER_GEN ) rbac:roleName=manager-role crd webhook paths=" $$ path" output:crd:artifacts:config=config/base/crd/bases output:rbac:artifacts:config=config/base/rbac; \
108+ done
105109
106110.PHONY : generate
107111generate : $(CONTROLLER_GEN ) # EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
You can’t perform that action at this time.
0 commit comments