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:
parent
805b2641be
commit
4f79d27f2f
2 changed files with 9 additions and 5 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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: ""
|
||||
|
|
Loading…
Reference in a new issue