Skip to content

Commit

Permalink
[crd-schema-checker] disable NoMaps validator
Browse files Browse the repository at this point in the history
  • Loading branch information
olliewalsh committed Dec 5, 2024
1 parent 2660b10 commit 1f1eb2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hack/crd-schema-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ set -euxo pipefail

CHECKER=$INSTALL_DIR/crd-schema-checker

DISABLED_VALIDATORS=NoMaps # TODO: https://issues.redhat.com/browse/OSPRH-12254

CHECKER_ARGS=""
if [[ ${DISABLED_VALIDATORS:+x} ]]; then
CHECKER_ARGS="$CHECKER_ARGS --disabled-validators $DISABLED_VALIDATORS"
fi

TMP_DIR=$(mktemp -d)

function cleanup {
Expand All @@ -16,6 +23,7 @@ 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 \
$CHECKER_ARGS \
--existing-crd-filename="$TMP_DIR/$crd" \
--new-crd-filename="$crd"
done

0 comments on commit 1f1eb2c

Please sign in to comment.