From 63336db6f13f36386548c3357af5e37707f068d4 Mon Sep 17 00:00:00 2001 From: Mohammad Yosefpor Date: Mon, 18 Oct 2021 23:32:48 +0330 Subject: [PATCH] fix(charts): override first with global.backend --- charts/policy-reporter/charts/ui/templates/_helpers.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/policy-reporter/charts/ui/templates/_helpers.tpl b/charts/policy-reporter/charts/ui/templates/_helpers.tpl index 625a847e..fe444578 100644 --- a/charts/policy-reporter/charts/ui/templates/_helpers.tpl +++ b/charts/policy-reporter/charts/ui/templates/_helpers.tpl @@ -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 "-" }}