Merge pull request #9470 from lengrongfu/feat/add-e2e-for-systemdcgroup

add use systemd cgroup e2e
This commit is contained in:
Derek McGowan
2024-10-03 13:13:44 +00:00
committed by GitHub
8 changed files with 154 additions and 8 deletions

View File

@@ -62,6 +62,14 @@ runtime_type = "${TEST_RUNTIME}"
# This is safely ignored for kernel >= 5.19.
slow_chown = true
EOF
if [ ! -z "$CGROUP_DRIVER" ] && [ "$CGROUP_DRIVER" = "systemd" ];then
cat >> ${BDIR}/config.toml <<EOF
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
EOF
fi
ls /etc/cni/net.d
/usr/local/bin/containerd \

View File

@@ -167,6 +167,13 @@ version = 2
EOF
fi
if [ $IS_WINDOWS -eq 0 ] && [ ! -z "$CGROUP_DRIVER" ] && [ "$CGROUP_DRIVER" = "systemd" ];then
cat >> ${CONTAINERD_CONFIG_FILE} << EOF
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
EOF
fi
# CONTAINERD_TEST_SUFFIX is the suffix appended to the root/state directory used
# by test containerd.
CONTAINERD_TEST_SUFFIX=${CONTAINERD_TEST_SUFFIX:-"-test"}