From dd50992794e3520502290c4ac08697c5d2105b29 Mon Sep 17 00:00:00 2001 From: michaelgloeckner <56082327+michaelgloeckner@users.noreply.github.com> Date: Fri, 17 May 2024 09:37:27 +0200 Subject: [PATCH] Update _helpers.tpl added case for no product microservices release name creation --- templates/_helpers.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index d664cb7..878c242 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -1,7 +1,13 @@ {{- define "app-angular.fullname" -}} - {{ .Release.Name }}-{{ .Values.name | default .Chart.Name }} + {{- $product := .Values.product | default true -}} + {{- if $product -}} + {{ .Release.Name }}-{{ .Values.name | default .Chart.Name }} + {{- else -}} + {{ .Release.Name }} + {{- end -}} {{- end -}} + {{- define "app-angular.product.name" -}} {{ .Release.Name }} {{- end -}}