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 # 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 # 2.6.1
* Update Policy Reporter UI to v1.3.2 * Update Policy Reporter UI to v1.3.2
* Support access over Subpaths, e.g. Rancher Reverse Proxy * Support access over Subpaths, e.g. Rancher Reverse Proxy

View file

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

View file

@ -1,12 +1,12 @@
dependencies: dependencies:
- name: monitoring - name: monitoring
repository: "" repository: ""
version: 2.1.0 version: 2.2.0
- name: ui - name: ui
repository: "" repository: ""
version: 2.3.2 version: 2.3.3
- name: kyvernoPlugin - name: kyvernoPlugin
repository: "" repository: ""
version: 1.2.0 version: 1.2.1
digest: sha256:bb751835db85334bd7b379680227a488c80769646f916a1367e207e7909d557a digest: sha256:fd2e6ea2de442f9380f07431ac2fccbfe23ca542cb66cb89c0b1f509ae5aec11
generated: "2022-03-10T12:33:30.918735+01:00" 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 It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord
type: application type: application
version: 2.6.1 version: 2.6.2
appVersion: 2.3.0 appVersion: 2.3.1
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
home: https://kyverno.github.io/policy-reporter home: https://kyverno.github.io/policy-reporter
@ -18,10 +18,10 @@ maintainers:
dependencies: dependencies:
- name: monitoring - name: monitoring
condition: monitoring.enabled condition: monitoring.enabled
version: "2.1.0" version: "2.2.0"
- name: ui - name: ui
condition: ui.enabled condition: ui.enabled
version: "2.3.2" version: "2.3.3"
- name: kyvernoPlugin - name: kyvernoPlugin
condition: kyvernoPlugin.enabled condition: kyvernoPlugin.enabled
version: "1.2.0" version: "1.2.1"

View file

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

View file

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

View file

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

View file

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

View file

@ -16,3 +16,11 @@ spec:
{{- include "policyreporter.selectorLabels" . | nindent 8 }} {{- include "policyreporter.selectorLabels" . | nindent 8 }}
endpoints: endpoints:
- port: http - 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: namespace:
# labels to match the serviceMonitorSelector of the Prometheus Resource # labels to match the serviceMonitorSelector of the Prometheus Resource
labels: {} 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: grafana:
# namespace for configMap of grafana dashboards # namespace for configMap of grafana dashboards

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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