mirror of https://github.com/k3s-io/k3s
Ensure the provider is supported and exit otherwise.
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