From d4ba43794c097502e0b2cdd5c829e9b06c5eede6 Mon Sep 17 00:00:00 2001 From: inikulin Date: Wed, 23 Jul 2025 10:09:30 +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 9ce3ee5..e2b0ed1 100755 --- a/charts/backend/templates/templates/_globals.tpl +++ b/charts/backend/templates/templates/_globals.tpl @@ -41,6 +41,12 @@ {{- end -}} {{- end -}} +{{- define "global.env.auth" -}} + {{- if .Values.global.infrastructure.auth.enabled -}} + {{- tpl (.Values.global.envTemplates.auth | toYaml) . | nindent 0 -}} + {{- end -}} +{{- end -}} + {{- define "global.imageRepository" -}} {{- $prefix := .Values.global.dockerRegistryPrefix | default "registry.co-work.ru/" -}} {{- $name := .Chart.Name | default "unknown" -}}