Commit 928dd707 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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.
parents 77a8c258 cf5defd7
...@@ -197,6 +197,14 @@ function kube-up() { ...@@ -197,6 +197,14 @@ function kube-up() {
create_args+=("--cluster-ipv4-cidr=${CLUSTER_IP_RANGE}") create_args+=("--cluster-ipv4-cidr=${CLUSTER_IP_RANGE}")
fi 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:-} ) create_args+=( ${GKE_CREATE_FLAGS:-} )
# Bring up the cluster. # Bring up the cluster.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment