Merge pull request #9746 from wainersm/nydus_snapshotter_pin

ci: pin the nydus-snapshotter image version
This commit is contained in:
Wainer Moschetta
2024-05-30 16:49:10 -03:00
committed by GitHub

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