From 30108bdc705178702e4961566ebc7ac6a7ce0e53 Mon Sep 17 00:00:00 2001 From: DmitrievStepan <61726889+DmitrievStepan@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:59:18 +0500 Subject: [PATCH] Update ui.tmpl (#513) Adding global scope to the variable, since its unavailbale from the local Signed-off-by: DmitrievStepan <61726889+DmitrievStepan@users.noreply.github.com> --- charts/policy-reporter/configs/ui.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/policy-reporter/configs/ui.tmpl b/charts/policy-reporter/configs/ui.tmpl index 8f5f3ef6..152fd48f 100644 --- a/charts/policy-reporter/configs/ui.tmpl +++ b/charts/policy-reporter/configs/ui.tmpl @@ -19,7 +19,7 @@ ui: {{- $default := false -}} {{- range .Values.ui.clusters }} - {{- if eq .name .Values.ui.name -}} + {{- if eq .name $.Values.ui.name -}} {{- $default = true -}} {{- end -}} {{- end }} @@ -67,4 +67,4 @@ openIDConnect: {{- with .Values.ui.oauth }} oauth: {{- toYaml . | nindent 4 }} -{{- end }} \ No newline at end of file +{{- end }}