From e0b000ea771986dd4afadb6ef13162daed8ffbd4 Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Fri, 30 Aug 2024 14:40:31 +0200 Subject: [PATCH] release new beta chart Signed-off-by: Frank Jogeleit --- charts/policy-reporter/Chart.yaml | 2 +- charts/policy-reporter/README.md | 6 +++--- charts/policy-reporter/values.yaml | 4 ++-- pkg/api/v2/api_test.go | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index 95da4050..3d0425a0 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: 3.0.0-beta.5 +version: 3.0.0-beta.6 appVersion: 3.0.0-beta icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png diff --git a/charts/policy-reporter/README.md b/charts/policy-reporter/README.md index 0038a6c0..0b71efcd 100644 --- a/charts/policy-reporter/README.md +++ b/charts/policy-reporter/README.md @@ -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.0-beta.5](https://img.shields.io/badge/Version-3.0.0--beta.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0-beta](https://img.shields.io/badge/AppVersion-3.0.0--beta-informational?style=flat-square) +![Version: 3.0.0-beta.6](https://img.shields.io/badge/Version-3.0.0--beta.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0-beta](https://img.shields.io/badge/AppVersion-3.0.0--beta-informational?style=flat-square) ## Documentation @@ -56,7 +56,7 @@ Check the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-get | image.registry | string | `"ghcr.io"` | | | image.repository | string | `"kyverno/policy-reporter"` | | | image.pullPolicy | string | `"IfNotPresent"` | | -| image.tag | string | `"21dbb16"` | | +| image.tag | string | `"06babe3"` | | | imagePullSecrets | list | `[]` | | | priorityClassName | string | `""` | | | replicaCount | int | `1` | | @@ -350,7 +350,7 @@ Check the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-get | ui.image.registry | string | `"ghcr.io"` | Image registry | | ui.image.repository | string | `"kyverno/policy-reporter-ui"` | Image repository | | ui.image.pullPolicy | string | `"IfNotPresent"` | Image PullPolicy | -| ui.image.tag | string | `"2.0.0-beta.6"` | Image tag Defaults to `Chart.AppVersion` if omitted | +| ui.image.tag | string | `"2.0.0-beta.7"` | Image tag Defaults to `Chart.AppVersion` if omitted | | ui.replicaCount | int | `1` | Deployment replica count | | ui.tempDir | string | `"/tmp"` | Temporary Directory to persist session data for authentication | | ui.logging.encoding | string | `"console"` | log encoding possible encodings are console and json | diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index 48f69895..f4bb93f0 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -11,7 +11,7 @@ image: registry: ghcr.io repository: kyverno/policy-reporter pullPolicy: IfNotPresent - tag: 21dbb16 + tag: 06babe3 imagePullSecrets: [] @@ -757,7 +757,7 @@ ui: pullPolicy: IfNotPresent # -- (string) Image tag # Defaults to `Chart.AppVersion` if omitted - tag: "2.0.0-beta.6" + tag: "2.0.0-beta.7" # -- Deployment replica count replicaCount: 1 diff --git a/pkg/api/v2/api_test.go b/pkg/api/v2/api_test.go index 26a59ed8..b5e9fc58 100644 --- a/pkg/api/v2/api_test.go +++ b/pkg/api/v2/api_test.go @@ -257,8 +257,8 @@ func TestV2(t *testing.T) { json.NewDecoder(w.Body).Decode(&resp) assert.Equal(t, resp.Count, 2) - assert.Contains(t, resp.Items, v2.ResourceResult{ID: "6274512523942114905", UID: "dfd57c50-f30c-4729-b63f-b1954d8988d1", Name: "nginx", Kind: "Deployment", APIVersion: "v1", Namespace: "kyverno", Status: v2.Status{Pass: 1}}) - assert.Contains(t, resp.Items, v2.ResourceResult{ID: "8277600851619588241", UID: "dfd57c50-f30c-4729-b63f-b1954d8988d2", Name: "nginx2", Kind: "Deployment", APIVersion: "v1", Namespace: "kyverno", Status: v2.Status{Warn: 1}}) + assert.Contains(t, resp.Items, v2.ResourceResult{ID: "6274512523942114905", UID: "dfd57c50-f30c-4729-b63f-b1954d8988d1", Name: "nginx", Kind: "Deployment", APIVersion: "v1", Namespace: "kyverno", Status: v2.Status{Pass: 1}, Severities: v2.Severities{High: 1}}) + assert.Contains(t, resp.Items, v2.ResourceResult{ID: "8277600851619588241", UID: "dfd57c50-f30c-4729-b63f-b1954d8988d2", Name: "nginx2", Kind: "Deployment", APIVersion: "v1", Namespace: "kyverno", Status: v2.Status{Warn: 1}, Severities: v2.Severities{High: 1}}) } }) @@ -274,7 +274,7 @@ func TestV2(t *testing.T) { json.NewDecoder(w.Body).Decode(&resp) assert.Equal(t, resp.Count, 1) - assert.Equal(t, resp.Items[0], v2.ResourceResult{ID: "11786270724827677857", UID: "dfd57c50-f30c-4729-b63f-b1954d8988d1", Name: "kyverno", Kind: "Namespace", APIVersion: "v1", Source: "", Status: v2.Status{Fail: 1}}) + assert.Equal(t, resp.Items[0], v2.ResourceResult{ID: "11786270724827677857", UID: "dfd57c50-f30c-4729-b63f-b1954d8988d1", Name: "kyverno", Kind: "Namespace", APIVersion: "v1", Source: "", Status: v2.Status{Fail: 1}, Severities: v2.Severities{High: 1}}) } })