Skip to content

Commit

Permalink
add product check for app.fullname creation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgloeckner committed May 17, 2024
1 parent a65d4cd commit 57f96ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- define "app.fullname" -}}
{{- $product := .Values.product | default true -}}
{{- if $product -}}
{{- if or .Values.product (not (hasKey .Values "product")) -}}
{{ .Release.Name }}-{{ .Values.name | default .Chart.Name }}
{{- else -}}
{{ .Release.Name }}
Expand Down

0 comments on commit 57f96ab

Please sign in to comment.