Skip to content

Commit

Permalink
fix: use correct children indentation for logs.access.filters
Browse files Browse the repository at this point in the history
  • Loading branch information
fty4 authored Oct 16, 2024
1 parent 016822d commit 59073ef
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
8 changes: 4 additions & 4 deletions traefik/VALUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ Kubernetes: `>=1.22.0-0`
| logs.access.fields.general.names | object | `{}` | Names of the fields to limit. |
| logs.access.fields.headers | object | `{"defaultmode":"drop","names":{}}` | [Limit logged fields or headers](https://doc.traefik.io/traefik/observability/access-logs/#limiting-the-fieldsincluding-headers) |
| logs.access.fields.headers.defaultmode | string | `"drop"` | Set default mode for fields.headers |
| logs.access.filters | object | `{}` | Set [filtering](https://docs.traefik.io/observability/access-logs/#filtering) |
| logs.access.filters | object | `{"minduration":"","retryattempts":false,"statuscodes":""}` | Set [filtering](https://docs.traefik.io/observability/access-logs/#filtering) |
| logs.access.filters.minduration | string | `""` | Set minDuration, to keep access logs when requests take longer than the specified duration |
| logs.access.filters.retryattempts | bool | `false` | Set retryAttempts, to keep the access logs when at least one retry has happened |
| logs.access.filters.statuscodes | string | `""` | Set statusCodes, to limit the access logs to requests with a status codes in the specified range |
| logs.access.format | string | `nil` | Set [access log format](https://doc.traefik.io/traefik/observability/access-logs/#format) |
| logs.access.minduration | string | `""` | |
| logs.access.retryattempts | bool | `false` | |
| logs.access.statuscodes | string | `""` | |
| logs.general.filePath | string | `""` | To write the logs into a log file, use the filePath option. |
| logs.general.format | string | `nil` | Set [logs format](https://doc.traefik.io/traefik/observability/logs/#format) |
| logs.general.level | string | `"INFO"` | Alternative logging levels are TRACE, DEBUG, INFO, WARN, ERROR, FATAL, and PANIC. |
Expand Down
22 changes: 12 additions & 10 deletions traefik/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,18 @@
"type": "object"
},
"filters": {
"properties": {},
"additionalProperties": false,
"properties": {
"minduration": {
"type": "string"
},
"retryattempts": {
"type": "boolean"
},
"statuscodes": {
"type": "string"
}
},
"type": "object"
},
"format": {
Expand All @@ -559,15 +570,6 @@
"string",
"null"
]
},
"minduration": {
"type": "string"
},
"retryattempts": {
"type": "boolean"
},
"statuscodes": {
"type": "string"
}
},
"type": "object"
Expand Down
11 changes: 7 additions & 4 deletions traefik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,13 @@ logs:
# -- Set [bufferingSize](https://doc.traefik.io/traefik/observability/access-logs/#bufferingsize)
bufferingSize: # @schema type:[integer, null]
# -- Set [filtering](https://docs.traefik.io/observability/access-logs/#filtering)
filters: {}
statuscodes: ""
retryattempts: false
minduration: ""
filters: # @schema additionalProperties: false
# -- Set statusCodes, to limit the access logs to requests with a status codes in the specified range
statuscodes: ""
# -- Set retryAttempts, to keep the access logs when at least one retry has happened
retryattempts: false
# -- Set minDuration, to keep access logs when requests take longer than the specified duration
minduration: ""
# -- Enables accessLogs for internal resources. Default: false.
addInternals: false
fields:
Expand Down

0 comments on commit 59073ef

Please sign in to comment.