diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index 98fe2335f97..df140bb0615 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -197,6 +197,14 @@ function kube-up() { create_args+=("--cluster-ipv4-cidr=${CLUSTER_IP_RANGE}") fi + if [[ ! -z "${ENABLE_LEGACY_ABAC:-}" ]]; then + if [[ "${ENABLE_LEGACY_ABAC:-}" == "true" ]]; then + create_args+=("--enable-legacy-authorization") + else + create_args+=("--no-enable-legacy-authorization") + fi + fi + create_args+=( ${GKE_CREATE_FLAGS:-} ) # Bring up the cluster.