From 571b07ea86ea24b3eef4bced3c123a498a190a4d Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Fri, 17 Dec 2021 13:24:59 +0100 Subject: [PATCH] UI update to v1.0.1 (#93) Signed-off-by: Frank Jogeleit --- CHANGELOG.md | 5 +++++ charts/policy-reporter/Chart.lock | 6 +++--- charts/policy-reporter/Chart.yaml | 4 ++-- charts/policy-reporter/charts/ui/Chart.yaml | 4 ++-- charts/policy-reporter/charts/ui/values.yaml | 2 +- charts/policy-reporter/templates/networkpolicy.yaml | 2 ++ 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79d15909..7a46b327 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +# 2.0.1 +* Remove NetworkPolicy ingress rule for UI if not enabled +* Update Policy Reporter UI + * Fix: Show PolicyReportResult Properties in Tables + # 2.0.0 ## Chart diff --git a/charts/policy-reporter/Chart.lock b/charts/policy-reporter/Chart.lock index 78f67de8..e512d293 100644 --- a/charts/policy-reporter/Chart.lock +++ b/charts/policy-reporter/Chart.lock @@ -4,9 +4,9 @@ dependencies: version: 2.0.0 - name: ui repository: "" - version: 2.0.0 + version: 2.0.1 - name: kyvernoPlugin repository: "" version: 1.0.0 -digest: sha256:7346779f27b9446f94271cb4b7233bac1b2549cf1205219b055bef926d2ea110 -generated: "2021-12-13T15:40:00.73344+01:00" +digest: sha256:d91a458143907a34e0fb4478ce1e43a1da553d34a4e83f96d203f21eb4d5f493 +generated: "2021-12-17T13:18:52.621629+01:00" diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index 885611a6..23d64132 100644 --- a/charts/policy-reporter/Chart.yaml +++ b/charts/policy-reporter/Chart.yaml @@ -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.0.0 +version: 2.0.1 appVersion: 2.0.0 icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png @@ -21,7 +21,7 @@ dependencies: version: "2.0.0" - name: ui condition: ui.enabled - version: "2.0.0" + version: "2.0.1" - name: kyvernoPlugin condition: kyvernoPlugin.enabled version: "1.0.0" diff --git a/charts/policy-reporter/charts/ui/Chart.yaml b/charts/policy-reporter/charts/ui/Chart.yaml index b61cf251..7c5dc971 100644 --- a/charts/policy-reporter/charts/ui/Chart.yaml +++ b/charts/policy-reporter/charts/ui/Chart.yaml @@ -3,5 +3,5 @@ name: ui description: Policy Reporter UI type: application -version: 2.0.0 -appVersion: 1.0.0 +version: 2.0.1 +appVersion: 1.0.1 diff --git a/charts/policy-reporter/charts/ui/values.yaml b/charts/policy-reporter/charts/ui/values.yaml index 2855e41d..eccc2e29 100644 --- a/charts/policy-reporter/charts/ui/values.yaml +++ b/charts/policy-reporter/charts/ui/values.yaml @@ -14,7 +14,7 @@ image: registry: ghcr.io repository: kyverno/policy-reporter-ui pullPolicy: IfNotPresent - tag: 1.0.0 + tag: 1.0.1 imagePullSecrets: [] diff --git a/charts/policy-reporter/templates/networkpolicy.yaml b/charts/policy-reporter/templates/networkpolicy.yaml index 10622b16..e96df593 100644 --- a/charts/policy-reporter/templates/networkpolicy.yaml +++ b/charts/policy-reporter/templates/networkpolicy.yaml @@ -11,12 +11,14 @@ spec: - Ingress - Egress ingress: + {{- if .Values.ui.enabled }} - from: - podSelector: matchLabels: {{- include "ui.selectorLabels" . | nindent 10 }} ports: - protocol: TCP port: 8080 + {{- end }} {{- with .Values.networkPolicy.ingress }} {{- toYaml . | nindent 2 }} {{- end }}