mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #80189 from wongma7/audit-local-up
Fix no audit policy by default in hack/local-up-cluster.sh
This commit is contained in:
commit
7163dcbf3f
@ -528,7 +528,7 @@ function start_apiserver {
|
|||||||
cloud_config_arg="--cloud-provider=external"
|
cloud_config_arg="--cloud-provider=external"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${AUDIT_POLICY_FILE}" ]]; then
|
if [[ -z "${AUDIT_POLICY_FILE}" ]]; then
|
||||||
cat <<EOF > /tmp/kube-audit-policy-file
|
cat <<EOF > /tmp/kube-audit-policy-file
|
||||||
# Log all requests at the Metadata level.
|
# Log all requests at the Metadata level.
|
||||||
apiVersion: audit.k8s.io/v1
|
apiVersion: audit.k8s.io/v1
|
||||||
|
Loading…
Reference in New Issue
Block a user