Skip to content

Commit 6462656

Browse files
Random-Liuestesp
authored andcommitted
Remove crictl on GCE for all cases.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 8764482 commit 6462656

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

contrib/gce/configure.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,15 @@ else
133133
# Download and untar the release tar ball.
134134
curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${TARBALL_GCS_PATH}"
135135
tar xvf "${TARBALL}"
136-
# Use crictl installed by kube-up.sh.
137-
# TODO(random-liu): Create release tarball for GCE, and do not package crictl.
138-
rm "${CONTAINERD_HOME}/usr/local/bin/crictl"
139-
rm "${CONTAINERD_HOME}/etc/crictl.yaml"
140136
rm -f "${TARBALL}"
141137
fi
142138
fi
143139

140+
# Remove crictl shipped with containerd, use crictl installed
141+
# by kube-up.sh.
142+
rm -f "${CONTAINERD_HOME}/usr/local/bin/crictl"
143+
rm -f "${CONTAINERD_HOME}/etc/crictl.yaml"
144+
144145
# Generate containerd config
145146
config_path="${CONTAINERD_CONFIG_PATH:-"/etc/containerd/config.toml"}"
146147
mkdir -p $(dirname ${config_path})

0 commit comments

Comments
 (0)