mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Ensure the provider is supported and exit otherwise.
This commit is contained in:
parent
1c8b418383
commit
7f20effd92
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user