diff --git a/cluster/get-kube.sh b/cluster/get-kube.sh index f74b752c1d8..fad4c1d47b8 100755 --- a/cluster/get-kube.sh +++ b/cluster/get-kube.sh @@ -65,6 +65,18 @@ if [[ "${KUBERNETES_SKIP_DOWNLOAD-}" ]]; then exit 0 fi +if [[ -d "./kubernetes" ]]; then + if [[ -n "${KUBERNETES_SKIP_CONFIRM-}" ]]; then + echo "'kubernetes' directory already exist. Should we skip download step and start to create cluster based on it? [Y]/n" + read confirm + if [[ "$confirm" == "y" ]]; then + echo "Skipping download step." + create_cluster + exit 0 + fi + fi +fi + function get_latest_version_number { local -r latest_url="https://storage.googleapis.com/kubernetes-release/release/stable.txt" if [[ $(which wget) ]]; then