ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

16
scripts/kyverno-test.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Run the repository Kyverno CLI test suite.
# Local/manual gate until Argo Workflows CI exists; same entrypoint for that runner later.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
TEST_DIR="${ROOT}/vendor/platform/kyverno/tests"
KYVERNO_VERSION="${KYVERNO_VERSION:-v1.19.2}"
if ! command -v kyverno >/dev/null 2>&1; then
echo "kyverno CLI not found; install ${KYVERNO_VERSION} from kyverno releases" >&2
exit 127
fi
echo "kyverno $(kyverno version 2>/dev/null | head -1 || true)"
exec kyverno test "${TEST_DIR}"