Skip to content

Commit

Permalink
Merge pull request #477 from stuggi/schema_check_fix_new_crds
Browse files Browse the repository at this point in the history
crd-schema-check: allow new CRDs
  • Loading branch information
openshift-merge-bot[bot] authored Dec 12, 2024
2 parents 33e5453 + ce9024d commit 9941c12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hack/crd-schema-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ trap cleanup EXIT

for crd in config/crd/bases/*.yaml; do
mkdir -p "$(dirname "$TMP_DIR/$crd")"
git show "$BASE_REF:$crd" > "$TMP_DIR/$crd"
$CHECKER check-manifests \
--existing-crd-filename="$TMP_DIR/$crd" \
--new-crd-filename="$crd"
if git show "$BASE_REF:$crd" > "$TMP_DIR/$crd"; then
$CHECKER check-manifests \
--existing-crd-filename="$TMP_DIR/$crd" \
--new-crd-filename="$crd"
fi
done

0 comments on commit 9941c12

Please sign in to comment.