Skip to content

Commit

Permalink
🐛 fix: Fix the rendered value for app.kubernetes.io/name
Browse files Browse the repository at this point in the history
  • Loading branch information
monteiro-renato committed Nov 20, 2024
1 parent a2e0553 commit 48971b4
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 48971b4

Please sign in to comment.