gpu: Add selector for k8s tests

We want to reuse the current run_tests with GPUs, introduce a var
that will define what to run.

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
Zvonko Kaiser
2025-03-06 21:16:16 +00:00
committed by stevenhorsman
parent bce5f49b3a
commit 550cdda5b8
2 changed files with 10 additions and 3 deletions

View File

@@ -330,7 +330,7 @@ jobs:
with:
registry: ghcr.io
repo: ${{ github.repository_owner }}/kata-deploy-ci
tag: ${{ inputs.tag }}-arm64
tag: ${{ inputs.tag }}-amd64
commit-hash: ${{ inputs.commit-hash }}
pr-number: ${{ inputs.pr-number }}
target-branch: ${{ inputs.target-branch }}

View File

@@ -289,7 +289,7 @@ function run_tests() {
if [[ "${KATA_HYPERVISOR}" = "dragonball" ]] && [[ "${SNAPSHOTTER}" = "devmapper" ]]; then
echo "Skipping tests for ${KATA_HYPERVISOR} using devmapper"
else
bash run_kubernetes_tests.sh
bash "${K8STESTS}"
fi
popd
}
@@ -589,7 +589,14 @@ function main() {
deploy-kata-zvsi) deploy_kata "zvsi" ;;
deploy-snapshotter) deploy_snapshotter ;;
report-tests) report_tests ;;
run-tests) run_tests ;;
run-tests)
K8STESTS=run_kubernetes_tests.sh
run_tests
;;
run-nv-tests)
K8STESTS=run_kubernetes_nv_tests.sh
run_tests
;;
run-tests-kcli) run_tests "kcli" ;;
collect-artifacts) collect_artifacts ;;
cleanup) cleanup ;;