mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-05 02:40:18 +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:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
||||||
tag: ${{ inputs.tag }}-arm64
|
tag: ${{ inputs.tag }}-amd64
|
||||||
commit-hash: ${{ inputs.commit-hash }}
|
commit-hash: ${{ inputs.commit-hash }}
|
||||||
pr-number: ${{ inputs.pr-number }}
|
pr-number: ${{ inputs.pr-number }}
|
||||||
target-branch: ${{ inputs.target-branch }}
|
target-branch: ${{ inputs.target-branch }}
|
||||||
|
@@ -289,7 +289,7 @@ function run_tests() {
|
|||||||
if [[ "${KATA_HYPERVISOR}" = "dragonball" ]] && [[ "${SNAPSHOTTER}" = "devmapper" ]]; then
|
if [[ "${KATA_HYPERVISOR}" = "dragonball" ]] && [[ "${SNAPSHOTTER}" = "devmapper" ]]; then
|
||||||
echo "Skipping tests for ${KATA_HYPERVISOR} using devmapper"
|
echo "Skipping tests for ${KATA_HYPERVISOR} using devmapper"
|
||||||
else
|
else
|
||||||
bash run_kubernetes_tests.sh
|
bash "${K8STESTS}"
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
@@ -547,7 +547,14 @@ function main() {
|
|||||||
deploy-kata-garm) deploy_kata "garm" ;;
|
deploy-kata-garm) deploy_kata "garm" ;;
|
||||||
deploy-kata-zvsi) deploy_kata "zvsi" ;;
|
deploy-kata-zvsi) deploy_kata "zvsi" ;;
|
||||||
deploy-snapshotter) deploy_snapshotter ;;
|
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" ;;
|
run-tests-kcli) run_tests "kcli" ;;
|
||||||
collect-artifacts) collect_artifacts ;;
|
collect-artifacts) collect_artifacts ;;
|
||||||
cleanup) cleanup ;;
|
cleanup) cleanup ;;
|
||||||
|
Reference in New Issue
Block a user