From 8bffb0093c9b7b8e4d0d41713e8ffea66b15d4d1 Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Tue, 18 Feb 2025 17:11:51 +0100 Subject: [PATCH] Update UI Image and Go to 1.24 Signed-off-by: Frank Jogeleit --- Dockerfile | 2 +- charts/policy-reporter/Chart.yaml | 4 ++-- charts/policy-reporter/README.md | 6 ++++-- charts/policy-reporter/configs/ui.tmpl | 3 +++ charts/policy-reporter/values.yaml | 8 +++++++- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b600bedca..61c4dfd0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23 AS builder +FROM golang:1.24 AS builder ARG LD_FLAGS='-s -w -linkmode external -extldflags "-static"' ARG TARGETPLATFORM diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index d54afb742..49318dbd5 100644 --- a/charts/policy-reporter/Chart.yaml +++ b/charts/policy-reporter/Chart.yaml @@ -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: 3.0.3 -appVersion: 3.0.0 +version: 3.0.4 +appVersion: 3.0.1 icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png home: https://kyverno.github.io/policy-reporter diff --git a/charts/policy-reporter/README.md b/charts/policy-reporter/README.md index 63e87d722..83d04b64f 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.3](https://img.shields.io/badge/Version-3.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) +![Version: 3.0.4](https://img.shields.io/badge/Version-3.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.1](https://img.shields.io/badge/AppVersion-3.0.1-informational?style=flat-square) ## Documentation @@ -339,7 +339,7 @@ Open `http://localhost:8082/` in your browser. | 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.1"` | Image tag | +| ui.image.tag | string | `"2.1.0"` | Image tag | | ui.replicaCount | int | `1` | Deployment replica count | | ui.tempDir | string | `"/tmp"` | Temporary Directory to persist session data for authentication | | ui.logging.api | bool | `false` | Enables external api request logging | @@ -365,6 +365,8 @@ Open `http://localhost:8082/` in your browser. | ui.oauth.scopes | list | `[]` | OpenID Connect allowed Scopes | | ui.oauth.secretRef | string | `""` | Provide OpenID Connect configuration via Secret supported keys: `provider`, `clientId`, `clientSecret` | | ui.banner | string | `""` | optional banner text | +| ui.logo.path | string | `""` | custom logo path | +| ui.logo.disabled | bool | `false` | disable logo entirely | | ui.displayMode | string | `""` | DisplayMode dark/light/colorblind/colorblinddark uses the OS configured prefered color scheme as default | | ui.boards | object | `{}` | Configure access control for all default boards. | | ui.customBoards | list | `[]` | Additional customizable dashboards | diff --git a/charts/policy-reporter/configs/ui.tmpl b/charts/policy-reporter/configs/ui.tmpl index d154c83a7..d76bf3e6b 100644 --- a/charts/policy-reporter/configs/ui.tmpl +++ b/charts/policy-reporter/configs/ui.tmpl @@ -16,6 +16,9 @@ server: ui: displayMode: {{ .Values.ui.displayMode }} banner: {{ .Values.ui.banner }} + logo: + path: {{ .Values.ui.logo.path }} + disabled: {{ .Values.ui.logo.disabled }} {{- $default := false -}} {{- range .Values.ui.clusters }} diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index cf9d46a99..19e935567 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -849,7 +849,7 @@ ui: # -- (string) Image PullPolicy pullPolicy: IfNotPresent # -- (string) Image tag - tag: "2.0.1" + tag: "2.1.0" # -- Deployment replica count replicaCount: 1 @@ -918,6 +918,12 @@ ui: # -- optional banner text banner: "" + logo: + # -- custom logo path + path: "" + # -- disable logo entirely + disabled: false + # -- DisplayMode dark/light/colorblind/colorblinddark # uses the OS configured prefered color scheme as default displayMode: ""