Update version of YQ in Makefile (#1634)

This commit is contained in:
Cory Miller
2022-07-14 21:59:13 -04:00
committed by GitHub
parent 4ede0c18d0
commit 759cc4b47f

View File

@@ -92,7 +92,7 @@ manifests: manifests-gen-crds chart-crds
manifests-gen-crds: controller-gen yq manifests-gen-crds: controller-gen yq
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases $(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 \ for YAMLFILE in config/crd/bases/actions*.yaml; do \
$(YQ) write --inplace "$$YAMLFILE" spec.preserveUnknownFields false; \ $(YQ) '.spec.preserveUnknownFields = false' --inplace "$$YAMLFILE" ; \
done done
chart-crds: chart-crds:
@@ -242,7 +242,7 @@ ifeq (, $(wildcard $(GOBIN)/yq))
YQ_TMP_DIR=$$(mktemp -d) ;\ YQ_TMP_DIR=$$(mktemp -d) ;\
cd $$YQ_TMP_DIR ;\ cd $$YQ_TMP_DIR ;\
go mod init tmp ;\ 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 ;\ rm -rf $$YQ_TMP_DIR ;\
} }
endif endif