diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 6a58279dc6a..8be12edd484 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -109,6 +109,11 @@ function split_csv() { # Verify prereqs function verify-prereqs() { local cmd + + # we use openssl to generate certs + kube::util::test_openssl_installed + + # we use gcloud to create the cluster, gsutil to stage binaries and data for cmd in gcloud gsutil; do if ! which "${cmd}" >/dev/null; then local resp="n" diff --git a/cluster/kube-down.sh b/cluster/kube-down.sh index 5993dc4a413..7c183c6eeb1 100755 --- a/cluster/kube-down.sh +++ b/cluster/kube-down.sh @@ -30,8 +30,11 @@ source "${KUBE_ROOT}/cluster/kube-util.sh" echo "Bringing down cluster using provider: $KUBERNETES_PROVIDER" +echo "... calling verify-prereqs" >&2 verify-prereqs +echo "... calling verify-kube-binaries" >&2 verify-kube-binaries +echo "... calling kube-down" >&2 kube-down echo "Done" diff --git a/hack/lib/util.sh b/hack/lib/util.sh index 82010551f9b..1d2f714a49d 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -539,7 +539,14 @@ function kube::util::test_openssl_installed { if [ "$?" != "0" ]; then echo "Failed to run openssl. Please ensure openssl is installed" exit 1 + elif [ "$(openssl version | cut -d\ -f1)" == "LibreSSL" ]; then + echo "LibreSSL is not supported. Please ensure openssl points to an OpenSSL binary" + if [ "$(uname -s)" == "Darwin" ]; then + echo 'On macOS we recommend using homebrew and adding "$(brew --prefix openssl)/bin" to your PATH' + fi + exit 1 fi + OPENSSL_BIN=$(command -v openssl) }