1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

fix(charts): fix policy-reporter-ui backend name (#85)

* fix(charts): fix policy-reporter-ui backend name
* fix(charts): override first with global.backend

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
This commit is contained in:
Mohammad Yosefpor 2021-10-18 23:41:19 +03:30 committed by GitHub
parent 805b2641be
commit 4f79d27f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -75,9 +75,13 @@ Create the name of the service account to use
{{- define "ui.policyReportServiceName" -}}
{{- $name := .Chart.Name }}
{{- if .Values.global.fullnameOverride }}
{{- .Values.global.fullnameOverride }}
{{- else }}
{{- if .Values.global.backend }}
{{- .Values.global.backend }}
{{- else if .Values.global.fullnameOverride }}
{{- .Values.global.fullnameOverride }}
{{- else if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}

View file

@ -99,8 +99,8 @@ global:
plugins:
# enable kyverno for Policy Reporter UI and monitoring
keyverno: false
# The name of service policy-report. If you changed ReleaseName you have to replace it
backend: policy-reporter
# The name of service policy-report. Defaults to ReleaseName.
backend: ""
# Service Port number
port: 8080
fullnameOverride: ""