Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Expose vars to configure an additional runtime handler
Browse files Browse the repository at this point in the history
Expose environment variables in the GCE containerd configuration
script for configuring an additional runtime handler. This unblocks
E2E testing of custom runtime handlers.

Signed-off-by: Tim Allclair <tallclair@google.com>
  • Loading branch information
tallclair committed Mar 4, 2019
1 parent fbce579 commit 69ea030
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cluster/gce/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ disabled_plugins = ["restart"]
EOF
chmod 644 "${config_path}"

if [[ -n "${CONTAINERD_EXTRA_RUNTIME_HANDLER}" ]]; then
cat >> ${config_path} <<EOF
[plugins.cri.containerd.runtimes.${CONTAINERD_EXTRA_RUNTIME_HANDLER}]
runtime_type = "${CONTAINERD_EXTRA_RUNTIME_TYPE:-io.containerd.runtime.v1.linux}"
runtime_engine = "${CONTAINERD_EXTRA_RUNTIME_ENGINE:-}"
runtime_root = "${CONTAINERD_EXTRA_RUNTIME_ROOT:-}"
EOF
fi

echo "export PATH=${CONTAINERD_HOME}/usr/local/bin/:${CONTAINERD_HOME}/usr/local/sbin/:\$PATH" > \
/etc/profile.d/containerd_env.sh

Expand Down

0 comments on commit 69ea030

Please sign in to comment.