Skip to content

Commit 034eff0

Browse files
test todd
1 parent 8dcb339 commit 034eff0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ KUSTOMIZE_OPCON_RBAC_DIR := config/base/operator-controller/rbac
126126
CRD_WORKING_DIR := crd_work_dir
127127
# Due to https://github.com/kubernetes-sigs/controller-tools/issues/837 we can't specify individual files
128128
# So we have to generate them together and then move them into place
129-
manifests: $(CONTROLLER_GEN) #EXHELP Generate WebhookConfiguration, ClusterRole, and CustomResourceDefinition objects.
129+
manifests: go-clean $(CONTROLLER_GEN) #EXHELP Generate WebhookConfiguration, ClusterRole, and CustomResourceDefinition objects.
130130
mkdir $(CRD_WORKING_DIR)
131131
$(CONTROLLER_GEN) crd paths="./api/v1/..." output:crd:artifacts:config=$(CRD_WORKING_DIR)
132132
mv $(CRD_WORKING_DIR)/olm.operatorframework.io_clusterextensions.yaml $(KUSTOMIZE_OPCON_CRDS_DIR)
@@ -138,10 +138,14 @@ manifests: $(CONTROLLER_GEN) #EXHELP Generate WebhookConfiguration, ClusterRole,
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

141-
.PHONY: generate
141+
.PHONY: go-clean 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="./..."
144144

145+
.PHONY: go-clean
146+
go-clean: go clean -modcache
147+
go mod tidy
148+
145149
.PHONY: verify
146150
verify: tidy fmt generate manifests crd-ref-docs #HELP Verify all generated code is up-to-date.
147151
git diff --exit-code

0 commit comments

Comments
 (0)