Skip to content

Commit 3722552

Browse files
committed
node-installer: detect containerd config version instead of $IS_K3S
Signed-off-by: Shiroki Satsuki <[email protected]>
1 parent a9c8e24 commit 3722552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-installer/script/installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mkdir -p $NODE_ROOT$KWASM_DIR/bin/
3939
cp /assets/containerd-shim-spin-v2 $NODE_ROOT$KWASM_DIR/bin/
4040

4141
if ! grep -q spin $NODE_ROOT$CONTAINERD_CONF; then
42-
if $IS_K3S; then
42+
if grep -q "version = 3" $NODE_ROOT$CONTAINERD_CONF; then
4343
echo '
4444
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes."spin"]
4545
runtime_type = "'$KWASM_DIR'/bin/containerd-shim-spin-v2"

0 commit comments

Comments
 (0)