Skip to content

Commit 7163dcb

Browse files
authored
Merge pull request kubernetes#80189 from wongma7/audit-local-up
Fix no audit policy by default in hack/local-up-cluster.sh
2 parents 9ac3fad + e18f7a9 commit 7163dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/local-up-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ function start_apiserver {
528528
cloud_config_arg="--cloud-provider=external"
529529
fi
530530

531-
if [[ -n "${AUDIT_POLICY_FILE}" ]]; then
531+
if [[ -z "${AUDIT_POLICY_FILE}" ]]; then
532532
cat <<EOF > /tmp/kube-audit-policy-file
533533
# Log all requests at the Metadata level.
534534
apiVersion: audit.k8s.io/v1

0 commit comments

Comments
 (0)