From d7c5b246c63d84064ad9b1e7b4f347b8af899f23 Mon Sep 17 00:00:00 2001 From: Tim Allclair Date: Thu, 28 Feb 2019 14:13:20 -0800 Subject: [PATCH] Expose vars to configure an additional runtime handler 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 --- cluster/gce/configure.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cluster/gce/configure.sh b/cluster/gce/configure.sh index 8b7cac3fb..9ed09da93 100755 --- a/cluster/gce/configure.sh +++ b/cluster/gce/configure.sh @@ -181,6 +181,16 @@ disabled_plugins = ["restart"] EOF chmod 644 "${config_path}" +if [[ -n "${CONTAINERD_EXTRA_RUNTIME_HANDLER}" ]]; then + cat >> ${config_path} < \ /etc/profile.d/containerd_env.sh