File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ function default_gke_version() {
48
48
PROJECT_ID=${PROJECT_ID:? " project id is required" }
49
49
50
50
set +u # Allow referencing unbound variable $CLUSTER
51
- if [[ -z ${CLUSTER } ]]; then
51
+ if [[ -z ${CLUSTER_NAME } ]]; then
52
52
CLUSTER_NAME=${1:? " cluster name is required" }
53
53
else
54
- CLUSTER_NAME=${CLUSTER }
54
+ CLUSTER_NAME=${CLUSTER_NAME }
55
55
fi
56
56
set -u
57
57
@@ -124,7 +124,7 @@ function gc() {
124
124
SA=" "
125
125
# shellcheck disable=SC2236
126
126
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" )
128
128
fi
129
129
130
130
# shellcheck disable=SC2048
You can’t perform that action at this time.
0 commit comments