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 <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2024-05-29 12:00:26 -03:00
parent 0eddfdc74f
commit 5faf9ca344

View File

@ -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