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
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
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
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
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
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
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
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: modules/beta-public-cluster/scripts/wait-for-cluster.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: modules/private-cluster-update-variant/scripts/wait-for-cluster.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: modules/private-cluster/scripts/wait-for-cluster.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
Copy file name to clipboardExpand all lines: scripts/wait-for-cluster.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ IMPERSONATE_SERVICE_ACCOUNT=$4
28
28
echo"Waiting for cluster $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME to reconcile..."
29
29
30
30
while
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")
31
+
# if cluster location is set, use it in filter
32
+
if [ -z"${CLUSTER_LOCATION}" ];then
33
+
current_status=$(gcloud container clusters list --project="$PROJECT" --filter="name=$CLUSTER_NAME" --format="value(status)" --impersonate-service-account="$IMPERSONATE_SERVICE_ACCOUNT")
34
+
else
35
+
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")
36
+
fi
32
37
if [ -z"${current_status}" ];then
33
38
echo"Unable to get status for $PROJECT/$CLUSTER_LOCATION/$CLUSTER_NAME"
0 commit comments