Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#4351 from monteiro-renato/patch-13
Browse files Browse the repository at this point in the history
🐛 fix: (helm/alpha-v1): Fix rendered value for app.kubernetes.io/name
  • Loading branch information
k8s-ci-robot authored Nov 20, 2024
2 parents 75e906d + 48971b4 commit 5d9d4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}` + "`" + `}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- 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 }}
Expand Down

0 comments on commit 5d9d4ac

Please sign in to comment.