Skip to content

Commit

Permalink
optional crd configuration (#812)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit authored Mar 10, 2025
1 parent ee11c57 commit 51b4f69
Show file tree
Hide file tree
Showing 9 changed files with 434 additions and 23 deletions.
4 changes: 2 additions & 2 deletions charts/policy-reporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: |
It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord
type: application
version: 3.0.7
appVersion: 3.0.3
version: 3.1.0
appVersion: 3.1.0

icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
home: https://kyverno.github.io/policy-reporter
Expand Down
3 changes: 2 additions & 1 deletion charts/policy-reporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Policy Reporter watches for PolicyReport Resources.
It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord

![Version: 3.0.7](https://img.shields.io/badge/Version-3.0.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.3](https://img.shields.io/badge/AppVersion-3.0.3-informational?style=flat-square)
![Version: 3.1.0](https://img.shields.io/badge/Version-3.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.1.0](https://img.shields.io/badge/AppVersion-3.1.0-informational?style=flat-square)

## Documentation

Expand Down Expand Up @@ -140,6 +140,7 @@ Open `http://localhost:8082/` in your browser.
| existingTargetConfig.enabled | bool | `false` | Use an already existing configuration |
| existingTargetConfig.name | string | `""` | Name of the secret with the config |
| existingTargetConfig.subPath | string | `""` | SubPath within the secret (defaults to config.yaml) |
| target.crd | bool | `false` | enable and install TargetConfig CRD |
| target.loki.host | string | `""` | Host Address |
| target.loki.path | string | `""` | Loki API, defaults to "/loki/api/v1/push" |
| target.loki.certificate | string | `""` | Server Certificate file path Can be added under extraVolumes |
Expand Down
3 changes: 3 additions & 0 deletions charts/policy-reporter/configs/core.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
crd:
targetConfig: {{ .Values.target.crd }}

target:
loki:
{{- include "target.loki" .Values.target.loki | nindent 4 }}
Expand Down
Loading

0 comments on commit 51b4f69

Please sign in to comment.