Skip to content

Commit

Permalink
fix mapping of headers properties to from values.yaml to config.yaml (#…
Browse files Browse the repository at this point in the history
…415)

Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed Mar 4, 2024
1 parent 221bf36 commit 53e91cf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 2.22.4
* Helm Chart
* fix mapping of headers properties to from values.yaml to config.yaml

# 2.22.3
* Helm Chart
* fix(helm): typo in email report config [[#413](https://github.com/kyverno/policy-reporter/pull/413) by [sudoleg](https://github.com/sudoleg)]
Expand Down
2 changes: 1 addition & 1 deletion charts/policy-reporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: |
It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord
type: application
version: 2.22.3
version: 2.22.4
appVersion: 2.18.1

icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
Expand Down
2 changes: 1 addition & 1 deletion charts/policy-reporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Policy Reporter

![Version: v2.22.3](https://img.shields.io/badge/Version-v2.22.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.18.1](https://img.shields.io/badge/AppVersion-v2.18.1-informational?style=flat-square)
![Version: v2.22.4](https://img.shields.io/badge/Version-v2.22.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.18.1](https://img.shields.io/badge/AppVersion-v2.18.1-informational?style=flat-square)

## Motivation

Expand Down
12 changes: 12 additions & 0 deletions charts/policy-reporter/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ webhook:
mountedSecret: {{ .Values.target.webhook.mountedSecret | quote }}
minimumPriority: {{ .Values.target.webhook.minimumPriority | quote }}
skipExistingOnStartup: {{ .Values.target.webhook.skipExistingOnStartup }}
{{- with .Values.target.webhook.headers }}
headers:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.target.webhook.sources }}
sources:
{{- toYaml . | nindent 4 }}
Expand Down Expand Up @@ -164,6 +168,10 @@ telegram:
mountedSecret: {{ .Values.target.telegram.mountedSecret | quote }}
minimumPriority: {{ .Values.target.telegram.minimumPriority | quote }}
skipExistingOnStartup: {{ .Values.target.telegram.skipExistingOnStartup }}
{{- with .Values.target.telegram.headers }}
headers:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.target.telegram.sources }}
sources:
{{- toYaml . | nindent 4 }}
Expand All @@ -189,6 +197,10 @@ googleChat:
mountedSecret: {{ .Values.target.googleChat.mountedSecret | quote }}
minimumPriority: {{ .Values.target.googleChat.minimumPriority | quote }}
skipExistingOnStartup: {{ .Values.target.googleChat.skipExistingOnStartup }}
{{- with .Values.target.googleChat.headers }}
headers:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.target.googleChat.sources }}
sources:
{{- toYaml . | nindent 4 }}
Expand Down

0 comments on commit 53e91cf

Please sign in to comment.