From fbd87baa70d9c6cb7174b9a92d9f0f53dac06fc0 Mon Sep 17 00:00:00 2001 From: joshmeranda Date: Wed, 9 Apr 2025 10:23:26 -0400 Subject: [PATCH] update doc to properlly reflect new funcitonality --- chart/README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/README.md b/chart/README.md index be8910214..08d1f3610 100644 --- a/chart/README.md +++ b/chart/README.md @@ -169,7 +169,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm | `replicas` | 3 | ***int*** - Number of replicas of Rancher pods | | `auditLog.destination` | "sidecar" | ***string*** - Stream to sidecar container console or hostPath volume - *"sidecar, hostPath"* | | `auditLog.hostPath` | "/var/log/rancher/audit" | ***string*** - log file destination on host (only applies when **auditLog.destination** is set to **hostPath**) | -| `auditLog.level` | 0 | ***int*** - set the [API Audit Log level](https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-api-audit-log#audit-log-levels). 0 is off. [0-3] | +| `auditLog.level` | 0 | ***int*** - set the API Audit Log level | | `auitLog.enabled` | false | ***bool*** - enable the rancher audit logging system | | `auditLog.maxAge` | 1 | ***int*** - maximum number of days to retain old audit log files (only applies when **auditLog.destination** is set to **hostPath**) | | `auditLog.maxBackup` | 1 | int - maximum number of audit log files to retain (only applies when **auditLog.destination** is set to **hostPath**) | diff --git a/main.go b/main.go index 1858d5d97..0216e672e 100644 --- a/main.go +++ b/main.go @@ -138,7 +138,7 @@ func main() { Name: "audit-level", Value: 0, EnvVar: "AUDIT_LEVEL", - Usage: "Audit log level: 0 - disable audit log, 1 - log event metadata, 2 - log event metadata and request body, 3 - log event metadata, request body and response body", + Usage: "Audit log level: 0 - audit log event metadata, 1 - log metadata and headers, 2 - log event metadata, headers, and request body, 3 - log event metadata, headers, request body, and response body", Destination: &config.AuditLogLevel, }, cli.BoolFlag{