mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +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}")
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user