mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Use existing ABAC policy file when upgrading GCE cluster
This commit is contained in:
parent
80f3e93b9a
commit
e6a63c8f40
@ -900,6 +900,9 @@ function start-kube-apiserver {
|
||||
|
||||
|
||||
local authorization_mode="RBAC"
|
||||
# Load existing ABAC policy files written by versions < 1.6 of this script
|
||||
# TODO: only default to this legacy path when in upgrade mode
|
||||
ABAC_AUTHZ_FILE="${ABAC_AUTHZ_FILE:-/etc/srv/kubernetes/abac-authz-policy.jsonl}"
|
||||
if [[ -n "${ABAC_AUTHZ_FILE:-}" && -e "${ABAC_AUTHZ_FILE}" ]]; then
|
||||
params+=" --authorization-policy-file=${ABAC_AUTHZ_FILE}"
|
||||
authorization_mode+=",ABAC"
|
||||
|
Loading…
Reference in New Issue
Block a user