Skip to content

Commit cd5a8e5

Browse files
committed
Focus where controller-gen operates
Signed-off-by: Todd Short <[email protected]>
1 parent 1d6d327 commit cd5a8e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,14 @@ manifests: $(CONTROLLER_GEN) #EXHELP Generate WebhookConfiguration, ClusterRole,
133133
mv $(CRD_WORKING_DIR)/olm.operatorframework.io_clustercatalogs.yaml $(KUSTOMIZE_CATD_CRDS_DIR)
134134
rmdir $(CRD_WORKING_DIR)
135135
# Generate the remaining operator-controller manifests
136-
$(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/operator-controller/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR)
136+
$(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/operator-controller/controllers/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR)
137137
# Generate the remaining catalogd manifests
138138
$(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/catalogd/..." output:rbac:artifacts:config=$(KUSTOMIZE_CATD_RBAC_DIR)
139139
$(CONTROLLER_GEN) webhook paths="./internal/catalogd/..." output:webhook:artifacts:config=$(KUSTOMIZE_CATD_WEBHOOKS_DIR)
140140

141141
.PHONY: generate
142142
generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
143143
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="internal/..."
144-
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="cmd/..."
145144
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="api/..."
146145

147146
.PHONY: verify

0 commit comments

Comments
 (0)