Skip to content

Commit ae11176

Browse files
committed
prow: allow ENABLE_CRI_SANDBOXES to be configured
The pull-containerd-node-e2e-1-7-sandboxed job will set ENABLE_CRI_SANDBOXES for containerd 1.7 and enable us to validate that the sbserver backend works with e2e tests. Signed-off-by: Samuel Karp <[email protected]>
1 parent 59cf2f9 commit ae11176

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

contrib/gce/configure.sh

Lines changed: 9 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)