16 lines
569 B
Shell
Executable file
16 lines
569 B
Shell
Executable file
#!/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}"
|