Skip to content

Commit 75e906d

Browse files
authored
Merge pull request #4350 from monteiro-renato/patch-12
🐛 fix: (helm/v1-alpha): Remove extra space before the labels section
2 parents 0fb8a13 + fd09588 commit 75e906d

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const helmHelpersTemplate = `{{` + "`" + `{{- define "chart.name" -}}` + "`" + `
6262
Common labels for the chart.
6363
*/}}
6464
{{` + "`" + `{{- define "chart.labels" -}}` + "`" + `}}
65-
{{` + "`" + `{{- if .Chart.AppVersion }}` + "`" + `}}
65+
{{` + "`" + `{{- if .Chart.AppVersion -}}` + "`" + `}}
6666
app.kubernetes.io/version: {{` + "`" + `{{ .Chart.AppVersion | quote }}` + "`" + `}}
6767
{{` + "`" + `{{- end }}` + "`" + `}}
6868
{{` + "`" + `{{- if .Chart.Version }}` + "`" + `}}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
{{- define "chart.labels" -}}
17-
{{- if .Chart.AppVersion }}
17+
{{- if .Chart.AppVersion -}}
1818
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
1919
{{- end }}
2020
{{- if .Chart.Version }}

0 commit comments

Comments
 (0)