From fb2d93bcf467168e12c67557865f2fa7875b3439 Mon Sep 17 00:00:00 2001 From: inikulin Date: Tue, 22 Jul 2025 12:56:14 +0000 Subject: [PATCH] Edit _globals.tpl --- charts/backend/templates/templates/_globals.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/backend/templates/templates/_globals.tpl b/charts/backend/templates/templates/_globals.tpl index 6594de0..059e358 100755 --- a/charts/backend/templates/templates/_globals.tpl +++ b/charts/backend/templates/templates/_globals.tpl @@ -40,3 +40,9 @@ {{- tpl (.Values.global.envTemplates.general | toYaml) . | nindent 0 -}} {{- end -}} {{- end -}} + +{{- define "global.imageRepository" -}} + {{- $prefix := .Values.global.dockerRegistryPrefix | default "" -}} + {{- $name := .Chart.Name -}} + {{- printf "%s%s" $prefix $name -}} +{{- end -}}