Only install etcd for verify tests that need it.

This commit is contained in:
Ryan Hitchman
2018-02-28 20:46:36 -08:00
parent 07240b7166
commit f6e23e32f9
4 changed files with 5 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ kube::etcd::cleanup() {
kube::etcd::install() {
(
cd "${KUBE_ROOT}/third_party"
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-* ]]; then
return # already installed
fi
if [[ $(uname) == "Darwin" ]]; then
download_file="etcd-v${ETCD_VERSION}-darwin-amd64.zip"
url="https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/${download_file}"