ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
16
scripts/kyverno-test.sh
Executable file
16
scripts/kyverno-test.sh
Executable 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}"
|
||||
Loading…
Reference in a new issue