mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-12 14:48:13 +00:00
Merge pull request #11529 from fidencio/topic/only-use-fixed-version-of-k0s-for-crio
tests: k0s: Always use latest version, apart from CRI-O tests
This commit is contained in:
commit
c68eb58f3f
@ -79,6 +79,8 @@ jobs:
|
||||
|
||||
- name: Deploy ${{ matrix.k8s }}
|
||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
||||
env:
|
||||
CONTAINER_RUNTIME: ${{ matrix.container_runtime }}
|
||||
|
||||
- name: Configure the ${{ matrix.snapshotter }} snapshotter
|
||||
if: matrix.snapshotter != ''
|
||||
|
@ -91,7 +91,7 @@ setup() {
|
||||
teardown() {
|
||||
pushd "${repo_root_dir}"
|
||||
|
||||
helm uninstall --namespace=kube-system kata-deploy --wait
|
||||
helm uninstall --namespace=kube-system kata-deploy
|
||||
kubectl -n kube-system wait --timeout=10m --for=delete -l name=kata-deploy pod
|
||||
|
||||
popd
|
||||
|
@ -31,6 +31,7 @@ KATA_HOST_OS="${KATA_HOST_OS:-}"
|
||||
KUBERNETES="${KUBERNETES:-}"
|
||||
K8S_TEST_HOST_TYPE="${K8S_TEST_HOST_TYPE:-small}"
|
||||
TEST_CLUSTER_NAMESPACE="${TEST_CLUSTER_NAMESPACE:-}"
|
||||
CONTAINER_RUNTIME="${CONTAINER_RUNTIME:-containerd}"
|
||||
|
||||
function _print_instance_type() {
|
||||
case "${K8S_TEST_HOST_TYPE}" in
|
||||
@ -192,6 +193,7 @@ function get_nodes_and_pods_info() {
|
||||
}
|
||||
|
||||
function deploy_k0s() {
|
||||
if [[ "${CONTAINER_RUNTIME}" == "crio" ]]; then
|
||||
url=$(get_from_kata_deps ".externals.k0s.url")
|
||||
|
||||
k0s_version_param=""
|
||||
@ -201,6 +203,9 @@ function deploy_k0s() {
|
||||
fi
|
||||
|
||||
curl -sSLf "${url}" | sudo "${k0s_version_param}" sh
|
||||
else
|
||||
curl -sSLf -sSLf https://get.k0s.sh | sudo sh
|
||||
fi
|
||||
|
||||
# In this case we explicitly want word splitting when calling k0s
|
||||
# with extra parameters.
|
||||
|
@ -301,6 +301,8 @@ externals:
|
||||
url: "https://github.com/lvmteam/lvm2"
|
||||
version: "v2_03_16"
|
||||
|
||||
# This is only used for CRI-O.
|
||||
# kata-deploy tests rely on the latest version of k0s.
|
||||
k0s:
|
||||
description: "K0s Kubernetes distribution, used in cri-o testing"
|
||||
url: "https://get.k0s.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user