diff --git a/charts/backend/templates/templates/_globals.tpl b/charts/backend/templates/templates/_globals.tpl index b69e11f..46b0be1 100755 --- a/charts/backend/templates/templates/_globals.tpl +++ b/charts/backend/templates/templates/_globals.tpl @@ -59,6 +59,12 @@ {{- end -}} {{- end -}} +{{- define "global.env.elastic" -}} + {{- if .Values.global.infrastructure.elastic.enabled -}} + {{- tpl (.Values.global.envTemplates.elastic | toYaml) . | nindent 0 -}} + {{- end -}} +{{- end -}} + {{- define "global.imageRepository" -}} {{- $prefix := .Values.global.dockerRegistryPrefix | default "registry.co-work.ru/" -}} {{- $name := .Chart.Name | default "unknown" -}}