Skip to content

Commit 4908ffd

Browse files
authored
Merge pull request #4444 from shuqz/fix-controller-gen
update to use controller-gen v0.19.0
2 parents 19d7fb6 + 3016fca commit 4908ffd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ docker-push-w-buildx:
129129
--push \
130130
--platform ${IMG_PLATFORM}
131131

132-
# find or download controller-gen
133-
# download controller-gen if necessary
132+
# download controller-gen v0.19.0
134133
controller-gen:
135-
ifeq (, $(shell which controller-gen))
136134
@{ \
137135
set -e ;\
138136
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
@@ -142,9 +140,6 @@ ifeq (, $(shell which controller-gen))
142140
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
143141
}
144142
CONTROLLER_GEN=$(GOBIN)/controller-gen
145-
else
146-
CONTROLLER_GEN=$(shell which controller-gen)
147-
endif
148143

149144
# find or download mockgen
150145
# download mockgen if necessary

0 commit comments

Comments
 (0)