Merge pull request #46661 from cjcullen/abacflag

Automatic merge from submit-queue

Plumb through the ENABLE_LEGACY_ABAC flag for GKE kube-up.

**What this PR does / why we need it**:
Makes the "gke" provider in `cluster/` respect the `ENABLE_LEGACY_ABAC` env var by plumbing it through to the `--enable-legacy-authorization` gcloud flag.
This commit is contained in:
Kubernetes Submit Queue 2017-05-31 01:00:44 -07:00 committed by GitHub
commit 928dd707ba

View File

@ -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.