From cf5defd7e4bfda1fb19b66a30ab3ac4e7a924556 Mon Sep 17 00:00:00 2001 From: CJ Cullen Date: Tue, 30 May 2017 17:02:06 -0700 Subject: [PATCH] Plumb through the ENABLE_LEGACY_ABAC flag for GKE kube-up. --- cluster/gke/util.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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.