Remove crictl on GCE for all cases.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2018-06-26 22:37:23 +00:00 committed by Derek McGowan
parent d8ce08fd92
commit b553fdaf31
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -133,14 +133,15 @@ else
# Download and untar the release tar ball. # Download and untar the release tar ball.
curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${TARBALL_GCS_PATH}" curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${TARBALL_GCS_PATH}"
tar xvf "${TARBALL}" tar xvf "${TARBALL}"
# Use crictl installed by kube-up.sh.
# TODO(random-liu): Create release tarball for GCE, and do not package crictl.
rm "${CONTAINERD_HOME}/usr/local/bin/crictl"
rm "${CONTAINERD_HOME}/etc/crictl.yaml"
rm -f "${TARBALL}" rm -f "${TARBALL}"
fi fi
fi fi
# Remove crictl shipped with containerd, use crictl installed
# by kube-up.sh.
rm -f "${CONTAINERD_HOME}/usr/local/bin/crictl"
rm -f "${CONTAINERD_HOME}/etc/crictl.yaml"
# Generate containerd config # Generate containerd config
config_path="${CONTAINERD_CONFIG_PATH:-"/etc/containerd/config.toml"}" config_path="${CONTAINERD_CONFIG_PATH:-"/etc/containerd/config.toml"}"
mkdir -p $(dirname ${config_path}) mkdir -p $(dirname ${config_path})