mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-15 17:50:58 +00:00
Update README.md
This commit is contained in:
parent
af66e47f40
commit
e87ccf5443
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -16,6 +16,17 @@ helm install policy-reporter policy-reporter/policy-reporter --set loki.host=htt
|
||||||
```
|
```
|
||||||
You can also customize the `./charts/policy-reporter/values.yaml` to change the default configurations.
|
You can also customize the `./charts/policy-reporter/values.yaml` to change the default configurations.
|
||||||
|
|
||||||
|
### Additional configurations for Loki
|
||||||
|
|
||||||
|
Configure `loki.minimumPriority` to send only results with the configured minimumPriority or above, empty means all results. (info < warning < error)
|
||||||
|
Configure `loki.skipExistingOnStartup` to skip all results who already existed before the PolicyReporter started. Can be used after the first deployment to prevent duplicated events.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
loki:
|
||||||
|
minimumPriority: ""
|
||||||
|
skipExistingOnStartup: false
|
||||||
|
```
|
||||||
|
|
||||||
### Configure Policy Priorities
|
### Configure Policy Priorities
|
||||||
|
|
||||||
By default kyverno PolicyReports has no priority or severity for policies. So every passed rule validation will be processed as notice, a failed validation is processed as error. To customize this you can configure a mapping from policies to fail priorities. So you can send them as warnings instead of errors. To configure the priorities create a ConfigMap in the `policy-reporter` namespace with the name `policy-reporter-config`. This ConfigMap have to have a property `config.yaml` with the map as YAML content. See the Example for Detailes.
|
By default kyverno PolicyReports has no priority or severity for policies. So every passed rule validation will be processed as notice, a failed validation is processed as error. To customize this you can configure a mapping from policies to fail priorities. So you can send them as warnings instead of errors. To configure the priorities create a ConfigMap in the `policy-reporter` namespace with the name `policy-reporter-config`. This ConfigMap have to have a property `config.yaml` with the map as YAML content. See the Example for Detailes.
|
||||||
|
|
Loading…
Reference in a new issue