From d69bd30c1bbbed1c65cd4e79c4e36ffc8bb4b1b6 Mon Sep 17 00:00:00 2001 From: Michaela Lang Date: Mon, 4 Aug 2025 16:54:19 +0200 Subject: [PATCH] silenced output of start-audit-log-rotation and made it ENV dependning instead --- bindata/network/ovn-kubernetes/common/008-script-lib.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindata/network/ovn-kubernetes/common/008-script-lib.yaml b/bindata/network/ovn-kubernetes/common/008-script-lib.yaml index c22fca3126..02348710db 100644 --- a/bindata/network/ovn-kubernetes/common/008-script-lib.yaml +++ b/bindata/network/ovn-kubernetes/common/008-script-lib.yaml @@ -126,6 +126,9 @@ data: # /run/ovn/ start-audit-log-rotation() { + if [[ "${OVNKUBE_SH_VERBOSE:-}" != "true" ]]; then + set +x + fi # Rotate audit log files when then get to max size (in bytes) MAXFILESIZE=$(( "{{.OVNPolicyAuditMaxFileSize}}"*1000000 )) MAXLOGFILES="{{.OVNPolicyAuditMaxLogFiles}}"