From f97d3a8a0b40c5ba8db33eddc1ca47dcdcffc860 Mon Sep 17 00:00:00 2001 From: travisn Date: Thu, 14 Sep 2023 12:42:22 -0600 Subject: [PATCH] build: avoid crd edits when building on mac On mac development machines, the crds are being left in a state of change with the description removed and the OBC CRDs removed from crds.yaml and resources.yaml. By skipping the related env vars, these resources are no longer left unexpectedly modified. Signed-off-by: travisn (cherry picked from commit 0bf117493dc890c91bc109ac88b78a6bf0ae967a) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b3f284c1b..33894a5a0 100644 --- a/Makefile +++ b/Makefile @@ -119,8 +119,10 @@ build.version: @echo "$(VERSION)" > $(OUTPUT_DIR)/version # Change how CRDs are generated for CSVs +ifneq ($(REAL_HOST_PLATFORM),darwin_arm64) build.common: export NO_OB_OBC_VOL_GEN=true build.common: export MAX_DESC_LEN=0 +endif build.common: export SKIP_GEN_CRD_DOCS=true build.common: build.version helm.build mod.check crds gen-rbac @$(MAKE) go.init