From 5faf9ca344b1c05333c815f81b711472fffea4f0 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Wed, 29 May 2024 12:00:26 -0300 Subject: [PATCH] ci: pin the nydus-snapshotter image version It's cloning the nydus-snapshotter repo from the version specified in versions.yaml, however, the deployment files are set to pull in the latest version of the snapshotter image. With this version we are pinning the image version too. This is a temporary fix as it should be better worked out at nydus-snapshotter project side. Fixes: #9742 Signed-off-by: Wainer dos Santos Moschetta --- tests/integration/kubernetes/gha-run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index 79ff352acb..4f9d8cea76 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -530,6 +530,13 @@ function deploy_nydus_snapshotter() { 'data.ENABLE_RUNTIME_SPECIFIC_SNAPSHOTTER' \ "true" --style=double + # Pin the version of nydus-snapshotter image. + # TODO: replace with a definitive solution (see https://github.com/kata-containers/kata-containers/issues/9742) + yq write -i -d 1 \ + misc/snapshotter/base/nydus-snapshotter.yaml \ + 'spec.template.spec.containers[0].image' \ + "ghcr.io/containerd/nydus-snapshotter:${nydus_snapshotter_version}" --style=double + # Deploy nydus snapshotter as a daemonset kubectl create -f "misc/snapshotter/nydus-snapshotter-rbac.yaml" if [ "${KUBERNETES}" = "k3s" ]; then