File tree Expand file tree Collapse file tree 7 files changed +28
-42
lines changed
beta-private-cluster-update-variant/scripts
beta-private-cluster/scripts
beta-public-cluster/scripts
private-cluster-update-variant/scripts Expand file tree Collapse file tree 7 files changed +28
-42
lines changed Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
Original file line number Diff line number Diff line change 2222
2323PROJECT=$1
2424CLUSTER_NAME=$2
25- gcloud_command=" gcloud container clusters list --project=$PROJECT --format=json"
26- jq_query=" .[] | select(.name==\" $CLUSTER_NAME \" ) | .status"
2725
28- echo " Waiting for cluster $2 in project $1 to reconcile..."
26+ echo " Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
2927
30- current_status=$( $gcloud_command | jq -r " $jq_query " )
28+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3129
32- while [[ " ${ current_status} " == " RECONCILING" ]]; do
30+ while [[ " $current_status " == " RECONCILING" ]]; do
3331 printf " ."
3432 sleep 5
35- current_status=$( $gcloud_command | jq -r " $jq_query " )
33+ current_status=$( gcloud container clusters list --project= " $PROJECT " --filter=name: " $CLUSTER_NAME " --format= " value(status) " )
3634done
3735
3836echo " Cluster is ready!"
You can’t perform that action at this time.
0 commit comments