mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-15 17:50:58 +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" -}}
|
{{- define "ui.policyReportServiceName" -}}
|
||||||
{{- $name := .Chart.Name }}
|
{{- $name := .Chart.Name }}
|
||||||
{{- if .Values.global.fullnameOverride }}
|
{{- if .Values.global.backend }}
|
||||||
{{- .Values.global.fullnameOverride }}
|
|
||||||
{{- else }}
|
|
||||||
{{- .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 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -99,8 +99,8 @@ global:
|
||||||
plugins:
|
plugins:
|
||||||
# enable kyverno for Policy Reporter UI and monitoring
|
# enable kyverno for Policy Reporter UI and monitoring
|
||||||
keyverno: false
|
keyverno: false
|
||||||
# The name of service policy-report. If you changed ReleaseName you have to replace it
|
# The name of service policy-report. Defaults to ReleaseName.
|
||||||
backend: policy-reporter
|
backend: ""
|
||||||
# Service Port number
|
# Service Port number
|
||||||
port: 8080
|
port: 8080
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
Loading…
Reference in a new issue