Add fullnameOverride

pull/3123/head
Maxime Guyot 7 years ago
parent f6bff5da94
commit c864ba179e

@ -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 -}}
`

Loading…
Cancel
Save