Skip to content

Commit

Permalink
Update _helpers.tpl
Browse files Browse the repository at this point in the history
added case for no product microservices release name creation
  • Loading branch information
michaelgloeckner authored May 17, 2024
1 parent 5c6869f commit dd50992
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down

0 comments on commit dd50992

Please sign in to comment.