Skip to content

Commit 03a4513

Browse files
committed
Add crd-schema-check to verify step
1 parent 41d237d commit 03a4513

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ verify-scripts:
4949
bash -x hack/verify-integration-tests.sh
5050
bash -x hack/verify-group-versions.sh
5151
bash -x hack/verify-prerelease-lifecycle-gen.sh
52+
bash -x hack/verify-crd-schema-checker.sh
5253

5354
.PHONY: verify
5455
verify: verify-scripts verify-codegen-crds

hack/verify-crd-schema-checker.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
4+
5+
# Use PULL_BASE_REF for CI, otherwise use master unless overriden.
6+
COMPARISON_BASE=${COMPARISON_BASE:-${PULL_BASE_SHA:-"master"}}
7+
8+
GENERATOR=schemacheck EXTRA_ARGS=--schemacheck:comparison-base=${COMPARISON_BASE} ${SCRIPT_ROOT}/hack/update-codegen.sh

0 commit comments

Comments
 (0)