From 392c8fd11478c820b64304db87c9ef024aca99f5 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Fri, 25 Aug 2023 10:55:03 +0100 Subject: [PATCH] Split CRD schema check into separate Makefile target When the schema check fails, it may need to be overridden. By splitting into it's own target, make will continue to execute other dependencies, but report only the failure of verify-crd-schema. Presently if it fails, it reports that verify-scripts failed, which is not ideal, since we require this to pass. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d505ab59d7f..2bdee10c9f1 100644 --- a/Makefile +++ b/Makefile @@ -49,15 +49,18 @@ verify-scripts: bash -x hack/verify-integration-tests.sh bash -x hack/verify-group-versions.sh bash -x hack/verify-prerelease-lifecycle-gen.sh - bash -x hack/verify-crd-schema-checker.sh .PHONY: verify -verify: verify-scripts verify-codegen-crds +verify: verify-scripts verify-crd-schema verify-codegen-crds .PHONY: verify-codegen-crds verify-codegen-crds: bash -x hack/verify-codegen-crds.sh +.PHONY: verify-crd-schema +verify-crd-schema: + bash -x hack/verify-crd-schema-checker.sh + .PHONY: verify-% verify-%: make $*