mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-16 03:54:31 +01:00
This PR adds the Cloud Hypervisor driver, integrated with the runtime-rs, as part of the kubernetes tests. Fixes #8559 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
91 lines
2.4 KiB
YAML
91 lines
2.4 KiB
YAML
name: CI | Run kubernetes tests on GARM
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
registry:
|
|
required: true
|
|
type: string
|
|
repo:
|
|
required: true
|
|
type: string
|
|
tag:
|
|
required: true
|
|
type: string
|
|
pr-number:
|
|
required: true
|
|
type: string
|
|
commit-hash:
|
|
required: false
|
|
type: string
|
|
target-branch:
|
|
required: false
|
|
type: string
|
|
default: ""
|
|
|
|
jobs:
|
|
run-k8s-tests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
vmm:
|
|
- clh #cloud-hypervisor
|
|
- dragonball
|
|
- fc #firecracker
|
|
- qemu
|
|
- cloud-hypervisor
|
|
snapshotter:
|
|
- devmapper
|
|
k8s:
|
|
- k3s
|
|
instance:
|
|
- garm-ubuntu-2004
|
|
- garm-ubuntu-2004-smaller
|
|
include:
|
|
- instance: garm-ubuntu-2004
|
|
instance-type: normal
|
|
- instance: garm-ubuntu-2004-smaller
|
|
instance-type: small
|
|
runs-on: ${{ matrix.instance }}
|
|
env:
|
|
DOCKER_REGISTRY: ${{ inputs.registry }}
|
|
DOCKER_REPO: ${{ inputs.repo }}
|
|
DOCKER_TAG: ${{ inputs.tag }}
|
|
PR_NUMBER: ${{ inputs.pr-number }}
|
|
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
|
KUBERNETES: ${{ matrix.k8s }}
|
|
SNAPSHOTTER: ${{ matrix.snapshotter }}
|
|
USING_NFD: "false"
|
|
K8S_TEST_HOST_TYPE: ${{ matrix.instance-type }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.commit-hash }}
|
|
fetch-depth: 0
|
|
|
|
- name: Rebase atop of the latest target branch
|
|
run: |
|
|
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
|
|
env:
|
|
TARGET_BRANCH: ${{ inputs.target-branch }}
|
|
|
|
- name: Deploy ${{ matrix.k8s }}
|
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
|
|
|
- name: Configure the ${{ matrix.snapshotter }} snapshotter
|
|
run: bash tests/integration/kubernetes/gha-run.sh configure-snapshotter
|
|
|
|
- name: Deploy Kata
|
|
timeout-minutes: 10
|
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-garm
|
|
|
|
- name: Install `bats`
|
|
run: bash tests/integration/kubernetes/gha-run.sh install-bats
|
|
|
|
- name: Run tests
|
|
timeout-minutes: 30
|
|
run: bash tests/integration/kubernetes/gha-run.sh run-tests
|
|
|
|
- name: Delete kata-deploy
|
|
if: always()
|
|
run: bash tests/integration/kubernetes/gha-run.sh cleanup-garm
|