mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-03-18 10:44:10 +00:00
tests: k8s: rely more on free runners
We were running most of the k8s integration tests on AKS. The ones that don't actually depend on AKS's environment now run on normal ubuntu-24.04 GitHub runners instead: we bring up a kubeadm cluster there, test with both containerd lts and active, and skip attestation tests since those runtimes don't need them. AKS is left only for the jobs that do depend on it. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -417,6 +417,14 @@ function deploy_vanilla_k8s() {
|
||||
[[ -z "${container_engine}" ]] && die "container_engine is required"
|
||||
[[ -z "${container_engine_version}" ]] && die "container_engine_version is required"
|
||||
|
||||
# Resolve lts/active to the actual version from versions.yaml (e.g. v1.7, v2.1)
|
||||
case "${container_engine_version}" in
|
||||
lts|active)
|
||||
container_engine_version=$(get_from_kata_deps ".externals.containerd.${container_engine_version}")
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
install_system_dependencies "runc"
|
||||
load_k8s_needed_modules
|
||||
set_k8s_network_parameters
|
||||
|
||||
@@ -36,6 +36,7 @@ export PULL_TYPE="${PULL_TYPE:-default}"
|
||||
export TEST_CLUSTER_NAMESPACE="${TEST_CLUSTER_NAMESPACE:-kata-containers-k8s-tests}"
|
||||
export GENPOLICY_PULL_METHOD="${GENPOLICY_PULL_METHOD:-oci-distribution}"
|
||||
export TARGET_ARCH="${TARGET_ARCH:-x86_64}"
|
||||
export RUNS_ON_AKS="${RUNS_ON_AKS:-false}"
|
||||
|
||||
function configure_devmapper() {
|
||||
sudo mkdir -p /var/lib/containerd/devmapper
|
||||
|
||||
@@ -14,6 +14,7 @@ export AUTO_GENERATE_POLICY="${AUTO_GENERATE_POLICY:-no}"
|
||||
export KATA_HOST_OS="${KATA_HOST_OS:-}"
|
||||
export KATA_HYPERVISOR="${KATA_HYPERVISOR:-}"
|
||||
export PULL_TYPE="${PULL_TYPE:-default}"
|
||||
export RUNS_ON_AKS="${RUNS_ON_AKS:-false}"
|
||||
|
||||
declare -r kubernetes_dir=$(dirname "$(readlink -f "$0")")
|
||||
declare -r runtimeclass_workloads_work_dir="${kubernetes_dir}/runtimeclass_workloads_work"
|
||||
|
||||
@@ -39,6 +39,7 @@ AUTO_GENERATE_POLICY="${AUTO_GENERATE_POLICY:-}"
|
||||
GENPOLICY_PULL_METHOD="${GENPOLICY_PULL_METHOD:-}"
|
||||
KATA_HYPERVISOR="${KATA_HYPERVISOR:-}"
|
||||
KATA_HOST_OS="${KATA_HOST_OS:-}"
|
||||
RUNS_ON_AKS="${RUNS_ON_AKS:-false}"
|
||||
|
||||
# Common setup for tests.
|
||||
#
|
||||
@@ -98,13 +99,11 @@ is_nvidia_gpu_platform() {
|
||||
}
|
||||
|
||||
is_aks_cluster() {
|
||||
case "${KATA_HYPERVISOR}" in
|
||||
"qemu-tdx"|"qemu-snp"|qemu-nvidia-gpu*)
|
||||
return 1
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
esac
|
||||
if [[ "${RUNS_ON_AKS}" = "true" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
adapt_common_policy_settings_for_non_coco() {
|
||||
|
||||
Reference in New Issue
Block a user