Skip to content

Commit 5d9d4ac

Browse files
authored
Merge pull request #4351 from monteiro-renato/patch-13
🐛 fix: (helm/alpha-v1): Fix rendered value for app.kubernetes.io/name
2 parents 75e906d + 48971b4 commit 5d9d4ac

File tree

2 files changed

+2
-2
lines changed
  • pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates
  • testdata/project-v4-with-plugins/dist/chart/templates

2 files changed

+2
-2
lines changed

Diff for: pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/helpers_tpl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (f *HelmHelpers) SetTemplateDefaults() error {
4747
const helmHelpersTemplate = `{{` + "`" + `{{- define "chart.name" -}}` + "`" + `}}
4848
{{` + "`" + `{{- if .Chart }}` + "`" + `}}
4949
{{` + "`" + `{{- if .Chart.Name }}` + "`" + `}}
50-
{{` + "`" + `{{ .Chart.Name | trunc 63 | trimSuffix "-" }}` + "`" + `}}
50+
{{` + "`" + `{{- .Chart.Name | trunc 63 | trimSuffix "-" }}` + "`" + `}}
5151
{{` + "`" + `{{- else if .Values.nameOverride }}` + "`" + `}}
5252
{{` + "`" + `{{ .Values.nameOverride | trunc 63 | trimSuffix "-" }}` + "`" + `}}
5353
{{` + "`" + `{{- else }}` + "`" + `}}

Diff for: testdata/project-v4-with-plugins/dist/chart/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- define "chart.name" -}}
22
{{- if .Chart }}
33
{{- if .Chart.Name }}
4-
{{ .Chart.Name | trunc 63 | trimSuffix "-" }}
4+
{{- .Chart.Name | trunc 63 | trimSuffix "-" }}
55
{{- else if .Values.nameOverride }}
66
{{ .Values.nameOverride | trunc 63 | trimSuffix "-" }}
77
{{- else }}

0 commit comments

Comments
 (0)