File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
images/build/root/usr/local/bin Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22: " ${GOOGLE_CREDENTIALS:= " $( cat " $PLUGIN_GOOGLE_CREDENTIALS_FILE " 2> /dev/null) " } "
33: " ${GOOGLE_CLOUD_PROJECT:= " $PLUGIN_GOOGLE_CLOUD_PROJECT " } "
4- : " ${CLUSTER := " $PLUGIN_CLUSTER " } "
5- : " ${ZONE := " $PLUGIN_ZONE " } "
4+ : " ${GOOGLE_CLOUD_CLUSTER := " $PLUGIN_GOOGLE_CLOUD_CLUSTER " } "
5+ : " ${GOOGLE_CLOUD_ZONE := " $PLUGIN_GOOGLE_CLOUD_ZONE " } "
66: " ${SSH_KEY:= " $PLUGIN_SSH_KEY " } "
77: " ${DOCKER_USERNAME:= " $PLUGIN_DOCKER_USERNAME " } "
88: " ${DOCKER_PASSWORD:= " $PLUGIN_DOCKER_PASSWORD " } "
@@ -48,13 +48,12 @@ if [ -n "$GOOGLE_CLOUD_PROJECT" ] ; then
4848 run gcloud config set project " $GOOGLE_CLOUD_PROJECT "
4949fi
5050
51- if [ -n " $CLUSTER " ] ; then
51+ if [ -n " $GOOGLE_CLOUD_CLUSTER " ] ; then
5252 require_google_credentials
53- require_param " cluster"
54- require_param " project"
55- require_param " zone"
53+ require_param " google_cloud_project"
54+ require_param " google_cloud_zone"
5655
57- run gcloud container clusters get-credentials " $CLUSTER " --project " $GOOGLE_CLOUD_PROJECT " --zone " $ZONE "
56+ run gcloud container clusters get-credentials " $GOOGLE_CLOUD_CLUSTER " --project " $GOOGLE_CLOUD_PROJECT " --zone " $GOOGLE_CLOUD_ZONE "
5857 # Display kubernetees versions (usefull for debugging)
5958 run kubectl version
6059fi
You can’t perform that action at this time.
0 commit comments