Skip to content

Commit eaa330c

Browse files
committed
[crd-schema-checker] disable NoMaps validator
Related: https://issues.redhat.com/browse/OSPRH-12254
1 parent 5b6b54b commit eaa330c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

hack/crd-schema-checker.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ set -euxo pipefail
33

44
CHECKER=$INSTALL_DIR/crd-schema-checker
55

6+
DISABLED_VALIDATORS=NoMaps # TODO: https://issues.redhat.com/browse/OSPRH-12254
7+
8+
CHECKER_ARGS=""
9+
if [[ ${DISABLED_VALIDATORS:+x} ]]; then
10+
CHECKER_ARGS="$CHECKER_ARGS --disabled-validators $DISABLED_VALIDATORS"
11+
fi
12+
613
TMP_DIR=$(mktemp -d)
714

815
function cleanup {
@@ -16,6 +23,7 @@ for crd in config/crd/bases/*.yaml; do
1623
mkdir -p "$(dirname "$TMP_DIR/$crd")"
1724
if git show "$BASE_REF:$crd" > "$TMP_DIR/$crd"; then
1825
$CHECKER check-manifests \
26+
$CHECKER_ARGS \
1927
--existing-crd-filename="$TMP_DIR/$crd" \
2028
--new-crd-filename="$crd"
2129
fi

0 commit comments

Comments
 (0)