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
parent 081db20c5f
commit 73eb944f5a
2 changed files with 10 additions and 3 deletions

View File

@@ -256,7 +256,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
}
@@ -547,7 +547,14 @@ function main() {
deploy-kata-garm) deploy_kata "garm" ;;
deploy-kata-zvsi) deploy_kata "zvsi" ;;
deploy-snapshotter) deploy_snapshotter ;;
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 ;;