mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 06:04:02 +00:00
Merge pull request #46149 from cjcullen/logtoggle
Automatic merge from submit-queue Allow the /logs handler on the apiserver to be toggled. Adds a flag to kube-apiserver, and plumbs through en environment variable in configure-helper.sh
This commit is contained in:
@@ -848,6 +848,10 @@ function start-kube-apiserver {
|
||||
params+=" --audit-log-maxsize=2000000000"
|
||||
fi
|
||||
|
||||
if [[ "${ENABLE_APISERVER_LOGS_HANDLER:-}" == "false" ]]; then
|
||||
params+=" --enable-logs-handler=false"
|
||||
fi
|
||||
|
||||
local admission_controller_config_mount=""
|
||||
local admission_controller_config_volume=""
|
||||
local image_policy_webhook_config_mount=""
|
||||
|
||||
@@ -1061,6 +1061,10 @@ function start-kube-apiserver {
|
||||
params+=" --audit-log-maxsize=2000000000"
|
||||
fi
|
||||
|
||||
if [[ "${ENABLE_APISERVER_LOGS_HANDLER:-}" == "false" ]]; then
|
||||
params+=" --enable-logs-handler=false"
|
||||
fi
|
||||
|
||||
local admission_controller_config_mount=""
|
||||
local admission_controller_config_volume=""
|
||||
local image_policy_webhook_config_mount=""
|
||||
|
||||
Reference in New Issue
Block a user