diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index 11e2b2be7d..08c4b2f695 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -12,6 +12,78 @@ kubernetes_dir="$(dirname "$(readlink -f "$0")")" source "${kubernetes_dir}/../../gha-run-k8s-common.sh" tools_dir="${repo_root_dir}/tools" +function configure_devmapper() { + sudo mkdir -p /var/lib/containerd/devmapper + sudo truncate --size 10G /var/lib/containerd/devmapper/data-disk.img + sudo truncate --size 10G /var/lib/containerd/devmapper/meta-disk.img + + cat<&2 echo "${KUBERNETES} flavour is not supported"; exit 2 ;; + esac + + # We're not using this with baremetal machines, so we're fine on cutting + # corners here and just append this to the configuration file. + cat<&2 echo "${KUBERNETES} flavour is not supported"; exit 2 ;; + esac +} + +function configure_snapshotter() { + echo "::group::Configuring ${SNAPSHOTTER}" + + case ${SNAPSHOTTER} in + devmapper) configure_devmapper ;; + *) >&2 echo "${SNAPSHOTTER} flavour is not supported"; exit 2 ;; + esac + + echo "::endgroup::" +} + function deploy_kata() { platform="${1}" ensure_yq @@ -156,6 +228,7 @@ function main() { install-azure-cli) install_azure_cli ;; login-azure) login_azure ;; create-cluster) create_cluster ;; + configure-snapshotter) configure_snapshotter ;; deploy-k8s) deploy_k8s ;; install-bats) install_bats ;; install-kubectl) install_kubectl ;;