You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autogen/main/scripts/wait-for-cluster.sh
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,17 @@ fi
22
22
23
23
PROJECT=$1
24
24
CLUSTER_NAME=$2
25
-
IMPERSONATE_SERVICE_ACCOUNT=$3
25
+
CLUSTER_LOCATION=$3
26
+
IMPERSONATE_SERVICE_ACCOUNT=$4
26
27
27
-
echo"Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
28
+
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
28
29
29
30
while
30
-
current_status=$(gcloud container clusters list --project="$PROJECT" --filter=name:"$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
31
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME AND location=$CLUSTER_LOCATION" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
32
+
if [ -z"${current_status}" ];then
33
+
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: modules/beta-private-cluster-update-variant/scripts/wait-for-cluster.sh
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,17 @@ fi
22
22
23
23
PROJECT=$1
24
24
CLUSTER_NAME=$2
25
-
IMPERSONATE_SERVICE_ACCOUNT=$3
25
+
CLUSTER_LOCATION=$3
26
+
IMPERSONATE_SERVICE_ACCOUNT=$4
26
27
27
-
echo"Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
28
+
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
28
29
29
30
while
30
-
current_status=$(gcloud container clusters list --project="$PROJECT" --filter=name:"$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
31
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME AND location=$CLUSTER_LOCATION" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
32
+
if [ -z"${current_status}" ];then
33
+
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: modules/beta-private-cluster/scripts/wait-for-cluster.sh
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,17 @@ fi
22
22
23
23
PROJECT=$1
24
24
CLUSTER_NAME=$2
25
-
IMPERSONATE_SERVICE_ACCOUNT=$3
25
+
CLUSTER_LOCATION=$3
26
+
IMPERSONATE_SERVICE_ACCOUNT=$4
26
27
27
-
echo"Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
28
+
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
28
29
29
30
while
30
-
current_status=$(gcloud container clusters list --project="$PROJECT" --filter=name:"$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
31
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME AND location=$CLUSTER_LOCATION" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
32
+
if [ -z"${current_status}" ];then
33
+
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: modules/beta-public-cluster-update-variant/scripts/wait-for-cluster.sh
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,17 @@ fi
22
22
23
23
PROJECT=$1
24
24
CLUSTER_NAME=$2
25
-
IMPERSONATE_SERVICE_ACCOUNT=$3
25
+
CLUSTER_LOCATION=$3
26
+
IMPERSONATE_SERVICE_ACCOUNT=$4
26
27
27
-
echo"Waiting for cluster $CLUSTER_NAME in project $PROJECT to reconcile..."
28
+
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
28
29
29
30
while
30
-
current_status=$(gcloud container clusters list --project="$PROJECT" --filter=name:"$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
31
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME AND location=$CLUSTER_LOCATION" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
32
+
if [ -z"${current_status}" ];then
33
+
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
0 commit comments