Merge pull request #9799 from dims/fix-for-k8s-nfs-related-tests

Fix for k8s nfs related tests probably caused by `ulimit` changes
This commit is contained in:
Davanum Srinivas 2024-02-10 20:46:45 +00:00 committed by GitHub
commit bb45ce1e06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,6 +250,12 @@ fi
echo "export PATH=${CONTAINERD_HOME}/usr/local/bin/:${CONTAINERD_HOME}/usr/local/sbin/:\$PATH" > \
/etc/profile.d/containerd_env.sh
mkdir -p /etc/systemd/system/containerd.service.d/
cat >> /etc/systemd/system/containerd.service.d/override.conf <<EOF
[Service]
LimitNOFILE=1048576
EOF
# Run extra init script for test.
if [ "${CONTAINERD_TEST:-"false"}" == "true" ]; then
# EXTRA_INIT_SCRIPT is the name of the extra init script after being downloaded.