mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
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:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -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 }}
|
||||
|
@@ -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 ;;
|
||||
|
Reference in New Issue
Block a user