Skip to content

Commit 7428c1e

Browse files
authored
Merge pull request containerd#10801 from samuelkarp/prow-containerd-node-e2e-1-7-sandboxed
[release/1.7] prow: allow ENABLE_CRI_SANDBOXES to be configured
2 parents 59cf2f9 + ae11176 commit 7428c1e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

contrib/gce/configure.sh

+9
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ disabled_plugins = ["io.containerd.internal.v1.restart"]
235235
EOF
236236
chmod 644 "${config_path}"
237237

238+
cri_sandboxes="${CONTAINERD_ENABLE_CRI_SANDBOXES:-}"
239+
containerd_env_path="${CONTAINERD_ENV_PATH:-"/etc/containerd/env"}"
240+
touch "${containerd_env_path}"
241+
if [[ -n "${cri_sandboxes}" ]]; then
242+
cat > ${containerd_env_path} <<EOF
243+
ENABLE_CRI_SANDBOXES="${cri_sandboxes}"
244+
EOF
245+
fi
246+
238247
# containerd_extra_runtime_handler is the extra runtime handler to install.
239248
containerd_extra_runtime_handler=${CONTAINERD_EXTRA_RUNTIME_HANDLER:-""}
240249
if [[ -n "${containerd_extra_runtime_handler}" ]]; then

test/e2e_node/init.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ write_files:
4545
LimitNPROC=infinity
4646
LimitCORE=infinity
4747
TasksMax=infinity
48+
EnvironmentFile=/etc/containerd/env
4849
ExecStartPre=/sbin/modprobe overlay
4950
ExecStart=/home/containerd/usr/local/bin/containerd
5051

0 commit comments

Comments
 (0)