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:
Kubernetes Prow Robot
2019-07-15 21:51:37 -07:00
committed by GitHub

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