From 759cc4b47fde3eadc47bd9938018c3fb4358ee41 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Thu, 14 Jul 2022 21:59:13 -0400 Subject: [PATCH] Update version of YQ in Makefile (#1634) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 140143d8..d7960a46 100644 --- a/Makefile +++ b/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