diff --git a/pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/helpers_tpl.go b/pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/helpers_tpl.go index 61e312bb607..0083f2a7507 100644 --- a/pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/helpers_tpl.go +++ b/pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/helpers_tpl.go @@ -47,7 +47,7 @@ func (f *HelmHelpers) SetTemplateDefaults() error { const helmHelpersTemplate = `{{` + "`" + `{{- define "chart.name" -}}` + "`" + `}} {{` + "`" + `{{- if .Chart }}` + "`" + `}} {{` + "`" + `{{- if .Chart.Name }}` + "`" + `}} - {{` + "`" + `{{ .Chart.Name | trunc 63 | trimSuffix "-" }}` + "`" + `}} + {{` + "`" + `{{- .Chart.Name | trunc 63 | trimSuffix "-" }}` + "`" + `}} {{` + "`" + `{{- else if .Values.nameOverride }}` + "`" + `}} {{` + "`" + `{{ .Values.nameOverride | trunc 63 | trimSuffix "-" }}` + "`" + `}} {{` + "`" + `{{- else }}` + "`" + `}}