Skip to content

Commit

Permalink
Update UI version
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
  • Loading branch information
fjogeleit committed Apr 4, 2024
1 parent 0738065 commit d15f1b7
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/policy-reporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-alpha.23
version: 3.0.0-alpha.24
appVersion: 3.0.0-alpha

icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
Expand Down
9 changes: 5 additions & 4 deletions charts/policy-reporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-alpha.23](https://img.shields.io/badge/Version-3.0.0--alpha.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0-alpha](https://img.shields.io/badge/AppVersion-3.0.0--alpha-informational?style=flat-square)
![Version: 3.0.0-alpha.24](https://img.shields.io/badge/Version-3.0.0--alpha.24-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0-alpha](https://img.shields.io/badge/AppVersion-3.0.0--alpha-informational?style=flat-square)

## Documentation

Expand Down Expand Up @@ -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 | `"446cc09"` | |
| image.tag | string | `"77b076f"` | |
| imagePullSecrets | list | `[]` | |
| priorityClassName | string | `""` | |
| replicaCount | int | `1` | |
Expand Down Expand Up @@ -332,13 +332,14 @@ 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-alpha.32"` | Image tag Defaults to `Chart.AppVersion` if omitted |
| ui.image.tag | string | `"2.0.0-alpha.34"` | 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 |
| ui.logging.logLevel | int | `0` | log level default info |
| ui.server.port | int | `8080` | Application port |
| ui.server.logging | bool | `false` | Enables Access logging |
| ui.server.overwriteHost | bool | `true` | Overwrites Request Host with Proxy Host and adds `X-Forwarded-Host` and `X-Origin-Host` headers |
| ui.openIDConnect.enabled | bool | `false` | Enable openID Connect authentication |
| ui.openIDConnect.discoveryUrl | string | `""` | OpenID Connect Discovery URL |
| ui.openIDConnect.callbackUrl | string | `""` | OpenID Connect Callback URL |
Expand Down Expand Up @@ -396,7 +397,7 @@ Check the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-get
| plugin.kyverno.image.registry | string | `"ghcr.io"` | Image registry |
| plugin.kyverno.image.repository | string | `"kyverno/policy-reporter/kyverno-plugin"` | Image repository |
| plugin.kyverno.image.pullPolicy | string | `"IfNotPresent"` | Image PullPolicy |
| plugin.kyverno.image.tag | string | `"0.0.7"` | Image tag Defaults to `Chart.AppVersion` if omitted |
| plugin.kyverno.image.tag | string | `"0.0.8"` | Image tag Defaults to `Chart.AppVersion` if omitted |
| plugin.kyverno.replicaCount | int | `1` | Deployment replica count |
| plugin.kyverno.logging.encoding | string | `"console"` | log encoding possible encodings are console and json |
| plugin.kyverno.logging.logLevel | int | `0` | log level default info |
Expand Down
1 change: 1 addition & 0 deletions charts/policy-reporter/configs/ui.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ namespace: {{ .Release.Namespace }}
tempDir: {{ .Values.ui.tempDir }}

logging:
enabled: {{ .Values.ui.logging.enabled }}
encoding: {{ .Values.ui.logging.encoding }}
logLevel: {{ .Values.ui.logging.logLevel }}

Expand Down
8 changes: 5 additions & 3 deletions charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ image:
registry: ghcr.io
repository: kyverno/policy-reporter
pullPolicy: IfNotPresent
tag: 446cc09
tag: 77b076f

imagePullSecrets: []

Expand Down Expand Up @@ -720,7 +720,7 @@ ui:
pullPolicy: IfNotPresent
# -- (string) Image tag
# Defaults to `Chart.AppVersion` if omitted
tag: "2.0.0-alpha.32"
tag: "2.0.0-alpha.34"

# -- Deployment replica count
replicaCount: 1
Expand All @@ -741,6 +741,8 @@ ui:
port: 8080
# -- Enables Access logging
logging: false
# -- Overwrites Request Host with Proxy Host and adds `X-Forwarded-Host` and `X-Origin-Host` headers
overwriteHost: true

openIDConnect:
# -- Enable openID Connect authentication
Expand Down Expand Up @@ -974,7 +976,7 @@ plugin:
pullPolicy: IfNotPresent
# -- (string) Image tag
# Defaults to `Chart.AppVersion` if omitted
tag: "0.0.7"
tag: "0.0.8"

# -- Deployment replica count
replicaCount: 1
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/healthz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/kyverno/policy-reporter/pkg/api"
"github.com/stretchr/testify/assert"

"github.com/kyverno/policy-reporter/pkg/api"
)

func TestHealthCheckSuccess(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/kyverno/policy-reporter/pkg/api"
"github.com/stretchr/testify/assert"

"github.com/kyverno/policy-reporter/pkg/api"
)

func TestMetrics(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/kyverno/policy-reporter/pkg/api"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"

"github.com/kyverno/policy-reporter/pkg/api"
)

var check = func() error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/kyverno/policy-reporter/pkg/api"
"github.com/stretchr/testify/assert"

"github.com/kyverno/policy-reporter/pkg/api"
db "github.com/kyverno/policy-reporter/pkg/database"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/api/v2/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ import (
"testing"
"time"

"github.com/gin-gonic/gin"
"github.com/patrickmn/go-cache"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
v1 "k8s.io/client-go/kubernetes/typed/core/v1"

"github.com/gin-gonic/gin"
"github.com/kyverno/policy-reporter/pkg/api"
v2 "github.com/kyverno/policy-reporter/pkg/api/v2"
"github.com/kyverno/policy-reporter/pkg/config"
"github.com/kyverno/policy-reporter/pkg/database"
"github.com/kyverno/policy-reporter/pkg/fixtures"
"github.com/kyverno/policy-reporter/pkg/kubernetes/namespaces"
"github.com/patrickmn/go-cache"
"github.com/stretchr/testify/assert"
)

const (
Expand Down
1 change: 0 additions & 1 deletion pkg/kubernetes/secrets/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package secrets

import (
"context"

"strconv"

corev1 "k8s.io/api/core/v1"
Expand Down

0 comments on commit d15f1b7

Please sign in to comment.