Skip to content

Commit 62c744d

Browse files
author
Jianfei Hu
authored
create_cluster.sh update with correct env var. (#1663)
1 parent 619b131 commit 62c744d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

perf/istio-install/create_cluster.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ function default_gke_version() {
4848
PROJECT_ID=${PROJECT_ID:?"project id is required"}
4949

5050
set +u # Allow referencing unbound variable $CLUSTER
51-
if [[ -z ${CLUSTER} ]]; then
51+
if [[ -z ${CLUSTER_NAME} ]]; then
5252
CLUSTER_NAME=${1:?"cluster name is required"}
5353
else
54-
CLUSTER_NAME=${CLUSTER}
54+
CLUSTER_NAME=${CLUSTER_NAME}
5555
fi
5656
set -u
5757

@@ -124,7 +124,7 @@ function gc() {
124124
SA=""
125125
# shellcheck disable=SC2236
126126
if [[ -n "${GCP_SA:-}" ]];then
127-
SA=("--identity-namespace=${PROJECT_ID}.svc.id.goog" "--service-account=${GCP_SA}@${PROJECT_ID}.iam.gserviceaccount.com" "--workload-metadata-from-node=EXPOSED")
127+
SA=("--identity-provider=${PROJECT_ID}.svc.id.goog" "--service-account=${GCP_SA}@${PROJECT_ID}.iam.gserviceaccount.com" "--workload-metadata-from-node=EXPOSED")
128128
fi
129129

130130
# shellcheck disable=SC2048

0 commit comments

Comments
 (0)