1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

Add relabelings and bump Go Version of all components (#128)

* Add relabelings and bump Go Version of all components
* Update static manifests

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
Frank Jogeleit 2022-03-12 10:51:30 +01:00 committed by GitHub
parent 7e7bed62e7
commit 32bff8f81e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 64 additions and 25 deletions

View file

@ -1,5 +1,17 @@
# Changelog
# 2.6.2
* Policy Reporter
* Update Go to 1.17.8
* Add `serviceMonitor.relabelings` and `serviceMonitor.metricRelabelings` for ServiceMonitor configuration in the `monitoring` Subchart.
* Add `kyverno.serviceMonitor.relabelings` and `kyverno.serviceMonitor.metricRelabelings` for the KyvernoPlugin ServiceMonitor configuration in the `monitoring` Subchart.
* Policy Reporter UI
* Update Go to 1.17.8
* Policy Reporter KyvernoPlugin
* Update Go to 1.17.8
# 2.6.1
* Update Policy Reporter UI to v1.3.2
* Support access over Subpaths, e.g. Rancher Reverse Proxy

View file

@ -1,7 +1,7 @@
GO ?= go
BUILD ?= build
REPO ?= ghcr.io/kyverno/policy-reporter
IMAGE_TAG ?= 2.3.0
IMAGE_TAG ?= 2.3.1
LD_FLAGS='-s -w -linkmode external -extldflags "-static"'
all: build

View file

@ -1,12 +1,12 @@
dependencies:
- name: monitoring
repository: ""
version: 2.1.0
version: 2.2.0
- name: ui
repository: ""
version: 2.3.2
version: 2.3.3
- name: kyvernoPlugin
repository: ""
version: 1.2.0
digest: sha256:bb751835db85334bd7b379680227a488c80769646f916a1367e207e7909d557a
generated: "2022-03-10T12:33:30.918735+01:00"
version: 1.2.1
digest: sha256:fd2e6ea2de442f9380f07431ac2fccbfe23ca542cb66cb89c0b1f509ae5aec11
generated: "2022-03-12T10:44:00.187688+01:00"

View file

@ -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: 2.6.1
appVersion: 2.3.0
version: 2.6.2
appVersion: 2.3.1
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
home: https://kyverno.github.io/policy-reporter
@ -18,10 +18,10 @@ maintainers:
dependencies:
- name: monitoring
condition: monitoring.enabled
version: "2.1.0"
version: "2.2.0"
- name: ui
condition: ui.enabled
version: "2.3.2"
version: "2.3.3"
- name: kyvernoPlugin
condition: kyvernoPlugin.enabled
version: "1.2.0"
version: "1.2.1"

View file

@ -3,5 +3,5 @@ name: kyvernoPlugin
description: Policy Reporter Kyverno Plugin
type: application
version: 1.2.0
appVersion: 1.2.0
version: 1.2.1
appVersion: 1.2.1

View file

@ -2,7 +2,7 @@ image:
registry: ghcr.io
repository: kyverno/policy-reporter-kyverno-plugin
pullPolicy: IfNotPresent
tag: 1.2.0
tag: 1.2.1
imagePullSecrets: []

View file

@ -3,5 +3,5 @@ name: monitoring
description: Policy Reporter Monitoring with predefined ServiceMonitor and Grafana Dashboards
type: application
version: 2.1.0
version: 2.2.0
appVersion: 0.0.0

View file

@ -17,4 +17,12 @@ spec:
{{- include "kyvernoplugin.selectorLabels" . | nindent 8 }}
endpoints:
- port: rest
{{- with .Values.kyverno.serviceMonitor.relabelings }}
relabelings:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.kyverno.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View file

@ -16,3 +16,11 @@ spec:
{{- include "policyreporter.selectorLabels" . | nindent 8 }}
endpoints:
- port: http
{{- with .Values.serviceMonitor.relabelings }}
relabelings:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 4 }}
{{- end }}

View file

@ -6,6 +6,17 @@ serviceMonitor:
namespace:
# labels to match the serviceMonitorSelector of the Prometheus Resource
labels: {}
# https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
relabelings: []
# see serviceMonitor.relabelings
metricRelabelings: []
kyverno:
serviceMonitor:
# see serviceMonitor.relabelings
relabelings: []
# see serviceMonitor.relabelings
metricRelabelings: []
grafana:
# namespace for configMap of grafana dashboards

View file

@ -3,5 +3,5 @@ name: ui
description: Policy Reporter UI
type: application
version: 2.3.2
appVersion: 1.3.2
version: 2.3.3
appVersion: 1.3.3

View file

@ -14,7 +14,7 @@ image:
registry: ghcr.io
repository: kyverno/policy-reporter-ui
pullPolicy: IfNotPresent
tag: 1.3.2
tag: 1.3.3
imagePullSecrets: []

View file

@ -2,7 +2,7 @@ image:
registry: ghcr.io
repository: kyverno/policy-reporter
pullPolicy: IfNotPresent
tag: 2.3.0
tag: 2.3.1
imagePullSecrets: []

View file

@ -93,7 +93,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: ui
image: "ghcr.io/kyverno/policy-reporter-ui:1.3.2"
image: "ghcr.io/kyverno/policy-reporter-ui:1.3.3"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
@ -145,7 +145,7 @@ spec:
fsGroup: 1234
containers:
- name: policy-reporter
image: "ghcr.io/kyverno/policy-reporter:2.3.0"
image: "ghcr.io/kyverno/policy-reporter:2.3.1"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false

View file

@ -157,7 +157,7 @@ spec:
automountServiceAccountToken: true
containers:
- name: "kyverno-plugin"
image: "ghcr.io/kyverno/policy-reporter-kyverno-plugin:1.2.0"
image: "ghcr.io/kyverno/policy-reporter-kyverno-plugin:1.2.1"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
@ -204,7 +204,7 @@ spec:
spec:
containers:
- name: ui
image: "ghcr.io/kyverno/policy-reporter-ui:1.3.2"
image: "ghcr.io/kyverno/policy-reporter-ui:1.3.3"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
@ -256,7 +256,7 @@ spec:
fsGroup: 1234
containers:
- name: policy-reporter
image: "ghcr.io/kyverno/policy-reporter:2.3.0"
image: "ghcr.io/kyverno/policy-reporter:2.3.1"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false

View file

@ -84,7 +84,7 @@ spec:
automountServiceAccountToken: true
containers:
- name: policy-reporter
image: "ghcr.io/kyverno/policy-reporter:2.3.0"
image: "ghcr.io/kyverno/policy-reporter:2.3.1"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false