Skip to content

Commit

Permalink
fix(charts): override first with global.backend
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
  • Loading branch information
m-yosefpor committed Oct 18, 2021
1 parent bab44d5 commit 6f3f628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/policy-reporter/charts/ui/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ Create the name of the service account to use

{{- define "ui.policyReportServiceName" -}}
{{- $name := .Chart.Name }}
{{- if .Values.global.fullnameOverride }}
{{- 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 "-" }}
Expand Down

0 comments on commit 6f3f628

Please sign in to comment.