Skip to content

Commit

Permalink
Merge pull request #3123 from Miouge1/fullnameoverride
Browse files Browse the repository at this point in the history
Add fullnameOverride
  • Loading branch information
Matthew Fisher committed Nov 21, 2017
2 parents fe3eeaf + c864ba1 commit 4c21a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/chartutil/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
*/}}
{{- define "<CHARTNAME>.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- $default := printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- default $default .Values.fullnameOverride -}}
{{- end -}}
`

Expand Down

0 comments on commit 4c21a0e

Please sign in to comment.