-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/e2e: Add nydus-snapshotter workaround
There is an issue in containerd around the caching of snapshotter images. Chengyu has created a workaround in nydus-snapshotter, so let's try installing that fork to get the CI working. Signed-off-by: stevenhorsman <[email protected]>
- Loading branch information
1 parent
dd0ecde
commit f19b998
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/cloud-api-adaptor/hack/nydus-snapshotter-fork-deploy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024 IBM Corporation | ||
|
||
# This is temp hack to try out Chengyu's nydus snapshotter fix in https://github.com/containerd/nydus-snapshotter/pull/593 | ||
# before it has been merged, released and the CoCo operator updated to consume it. | ||
|
||
nydus_snapshotter_install_dir="/tmp/nydus-snapshotter" | ||
nydus_snapshotter_url=https://github.com/ChengyuZhu6/nydus-snapshotter.git | ||
nydus_snapshotter_version=fix-error | ||
git clone -b "${nydus_snapshotter_version}" "${nydus_snapshotter_url}" "${nydus_snapshotter_install_dir}" | ||
pushd "$nydus_snapshotter_install_dir" | ||
|
||
# Use sed rather than yq as we don't know which version might be installed | ||
sudo sed -i -e 's/^\(\s*FS_DRIVER: \).*$/\1\"proxy\"/g' "misc/snapshotter/base/nydus-snapshotter.yaml" | ||
sudo sed -i -e 's/^\(\s*ENABLE_CONFIG_FROM_VOLUME: \).*$/\1\"false\"/g' "misc/snapshotter/base/nydus-snapshotter.yaml" | ||
sudo sed -i -e 's/^\(\s*ENABLE_SYSTEMD_SERVICE: \).*$/\1\"true\"/g' "misc/snapshotter/base/nydus-snapshotter.yaml" | ||
sudo sed -i -e 's/^\(\s*ENABLE_RUNTIME_SPECIFIC_SNAPSHOTTER: \).*$/\1\"true\"/g' "misc/snapshotter/base/nydus-snapshotter.yaml" | ||
|
||
sudo sed -i -e 's%^\(\s*image: \)\("ghcr.io\/containerd/nydus-snapshotter:latest"\)%\1\"quay.io/chengyu_zhu/nydus-snapshotter:0.13.17\"%g' "misc/snapshotter/base/nydus-snapshotter.yaml" | ||
|
||
kubectl create -f "misc/snapshotter/nydus-snapshotter-rbac.yaml" | ||
kubectl apply -f "misc/snapshotter/base/nydus-snapshotter.yaml" | ||
|
||
kubectl rollout status DaemonSet nydus-snapshotter -n nydus-system --timeout 5m | ||
|
||
pods_name=$(kubectl get pods --selector=app=nydus-snapshotter -n nydus-system -o=jsonpath='{.items[*].metadata.name}') | ||
kubectl logs "${pods_name}" -n nydus-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters