mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
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:
commit
928dd707ba
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user