From 18f32cf03ff92c0c2715d6aed6c80605e73041db Mon Sep 17 00:00:00 2001 From: Michal Fojtik Date: Tue, 29 Jul 2014 14:31:37 +0200 Subject: [PATCH] Allow to set global KUBERNETES_PROVIDER env var --- cluster/kube-env.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cluster/kube-env.sh b/cluster/kube-env.sh index 640c07a2a03..17d09fb6764 100644 --- a/cluster/kube-env.sh +++ b/cluster/kube-env.sh @@ -14,8 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Set provider independent environment variables +# Set the default provider of Kubernetes cluster to know where to load provider-specific scripts +# You can override the default provider by exporting the KUBERNETES_PROVIDER +# variable in your bashrc +# +# The valid values: 'gce', 'azure' and 'vagrant' -# Set provider of Kubernetes cluster to know where to load provider-specific scripts, values: gce, vagrant, etc. -KUBERNETES_PROVIDER="gce" -#KUBERNETES_PROVIDER="vagrant" +KUBERNETES_PROVIDER=${KUBERNETES_PROVIDER:-gce}