Skip to content

Commit a408d14

Browse files
hrakvishesh92
authored andcommitted
Fix conversion-gen
Signed-off-by: Hans Rakers <[email protected]>
1 parent 9b19636 commit a408d14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,13 @@ config/.flag.mk: $(CONTROLLER_GEN) $(MANIFEST_GEN_INPUTS)
158158
$(CONTROLLER_GEN) crd:crdVersions=v1 rbac:roleName=manager-role webhook paths="{./api/...,./controllers/...}" output:crd:artifacts:config=config/crd/bases
159159
@touch config/.flag.mk
160160

161+
CONVERSION_GEN_TARGET=$(shell find api -type d -name "v*1" -exec echo {}\/zz_generated.conversion.go \;)
161162
.PHONY: generate-conversion
162163
generate-conversion: $(CONVERSION_GEN) ## Generate code to convert api/v1beta1 and api/v1beta2 to api/v1beta3
163164
$(CONVERSION_GEN) \
164165
--input-dirs=./api/v1beta1 \
165-
--go-header-file=./hack/boilerplate.go.txt \
166-
--output-base=. --output-file-base=zz_generated.conversion
167-
$(CONVERSION_GEN) \
168166
--input-dirs=./api/v1beta2 \
167+
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1beta1 \
169168
--go-header-file=./hack/boilerplate.go.txt \
170169
--output-base=. --output-file-base=zz_generated.conversion
171170

0 commit comments

Comments
 (0)