From 7f20effd922dbd6e7002554d3bf4b8f7aacdfb6a Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Wed, 3 Aug 2016 19:41:40 -0700 Subject: [PATCH] Ensure the provider is supported and exit otherwise. --- federation/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/federation/build.sh b/federation/build.sh index 5a249ffa70..f06075b963 100755 --- a/federation/build.sh +++ b/federation/build.sh @@ -133,6 +133,12 @@ function pull_installer() { } function ensure_files() { + kube::log::status "Ensure provider is supported..." + if [[ "${KUBERNETES_PROVIDER:-}" != "gce" ]]; then + echo "Supported providers: \"gce\"" + exit 1 + fi + kube::log::status "Ensure credential files exist..." if [[ ! -f "${GOOGLE_APPLICATION_CREDENTIALS}" ]]; then echo "Please ensure Google credentials file \""${GOOGLE_APPLICATION_CREDENTIALS}"\" exists."