File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ cp /assets/containerd-shim-spin-v2 $NODE_ROOT$KWASM_DIR/bin/
6969
7070if ! grep -q spin $NODE_ROOT$CONTAINERD_CONF ; then
7171 echo " Adding Spin runtime to containerd"
72- if $IS_K3S ; then
72+ if grep -q " version = 3 " $NODE_ROOT$CONTAINERD_CONF ; then
7373 echo '
7474[plugins."io.containerd.cri.v1.runtime".containerd.runtimes."spin"]
7575 runtime_type = "' $KWASM_DIR ' /bin/containerd-shim-spin-v2"
8888# configure SystemdCgroup
8989if ! grep -q ' runtimes.spin.options' $NODE_ROOT$CONTAINERD_CONF && [ " $SYSTEMD_CGROUP " = " true" ]; then
9090 echo " Setting SystemdCgroup to $SYSTEMD_CGROUP in Spin containerd configuration"
91- if $IS_K3S ; then
91+ if grep -q " version = 3 " $NODE_ROOT$CONTAINERD_CONF ; then
9292 echo '
9393[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.spin.options]
9494 SystemdCgroup = ' $SYSTEMD_CGROUP '
You can’t perform that action at this time.
0 commit comments