Skip to content

Commit

Permalink
Merge pull request #504 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 13, 2024
2 parents 526ca93 + f6c8c71 commit 3faa669
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 3faa669

Please sign in to comment.