Skip to content

Commit cfa2781

Browse files
egeguneshors
andauthored
K8SPS-379: Fix unnecessary CRD generation (#909)
Co-authored-by: Viacheslav Sarzhan <[email protected]>
1 parent 21b4054 commit cfa2781

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ help: ## Display this help.
7979
##@ Development
8080

8181
generate: controller-gen
82-
$(CONTROLLER_GEN) crd:maxDescLen=0 rbac:roleName=$(NAME) webhook paths="./..." output:crd:artifacts:config=config/crd/bases ## Generate WebhookConfiguration, Role and CustomResourceDefinition objects.
83-
$(CONTROLLER_GEN) crd:maxDescLen=0 rbac:roleName=$(NAME) webhook paths="./..." output:rbac:artifacts:config=config/rbac/cluster
82+
# Generate WebhookConfiguration, Role and CustomResourceDefinition objects.
83+
$(CONTROLLER_GEN) crd:maxDescLen=0 rbac:roleName=$(NAME) webhook paths="./..." output:crd:artifacts:config=config/crd/bases
84+
$(CONTROLLER_GEN) rbac:roleName=$(NAME) paths="./..." output:rbac:artifacts:config=config/rbac/cluster
8485
yq eval '.rules' config/rbac/cluster/clusterrole_additional.yaml >> config/rbac/cluster/role.yaml
8586
$(CONTROLLER_GEN) object:headerFile="LICENSE-HEADER" paths="./..." ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
8687
go generate ./...

0 commit comments

Comments
 (0)