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 -}}