Update version of YQ in Makefile (#1634)
This commit is contained in:
parent
4ede0c18d0
commit
759cc4b47f
4
Makefile
4
Makefile
|
|
@ -92,7 +92,7 @@ manifests: manifests-gen-crds chart-crds
|
|||
manifests-gen-crds: controller-gen yq
|
||||
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
|
||||
for YAMLFILE in config/crd/bases/actions*.yaml; do \
|
||||
$(YQ) write --inplace "$$YAMLFILE" spec.preserveUnknownFields false; \
|
||||
$(YQ) '.spec.preserveUnknownFields = false' --inplace "$$YAMLFILE" ; \
|
||||
done
|
||||
|
||||
chart-crds:
|
||||
|
|
@ -242,7 +242,7 @@ ifeq (, $(wildcard $(GOBIN)/yq))
|
|||
YQ_TMP_DIR=$$(mktemp -d) ;\
|
||||
cd $$YQ_TMP_DIR ;\
|
||||
go mod init tmp ;\
|
||||
go install github.com/mikefarah/yq/v3@3.4.0 ;\
|
||||
go install github.com/mikefarah/yq/v4@v4.25.3 ;\
|
||||
rm -rf $$YQ_TMP_DIR ;\
|
||||
}
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue