Fix no audit policy by default in hack/local-up-cluster.sh

This commit is contained in:
Matthew Wong 2019-07-15 23:50:59 +00:00
parent e3a125a64e
commit e18f7a9ec6

View File

@ -528,7 +528,7 @@ function start_apiserver {
cloud_config_arg="--cloud-provider=external"
fi
if [[ -n "${AUDIT_POLICY_FILE}" ]]; then
if [[ -z "${AUDIT_POLICY_FILE}" ]]; then
cat <<EOF > /tmp/kube-audit-policy-file
# Log all requests at the Metadata level.
apiVersion: audit.k8s.io/v1