22Expand the name of the chart.
33*/ }}
44{{- define " chart.name" -}}
5- {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" }}
5+ {{- default .Chart.Name .Values.nameOverride | trunc 28 | trimSuffix " -" }}
66{{- end }}
77
88{{/*
99Create a default fully qualified app name.
10- We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
10+ We truncate at 28 chars because some Kubernetes name fields are limited to 63 chars by the DNS naming spec.
11+ And the longest suffix appended to the chart's full name is 35 chars.
1112If release name contains chart name it will be used as a full name.
1213*/ }}
1314{{- define " chart.fullname" -}}
1415{{- if .Values.fullnameOverride }}
15- {{- .Values.fullnameOverride | trunc 63 | trimSuffix " -" }}
16+ {{- .Values.fullnameOverride | trunc 28 | trimSuffix " -" }}
1617{{- else }}
1718{{- $name := default .Chart.Name .Values.nameOverride }}
1819{{- if contains $name .Release.Name }}
19- {{- .Release.Name | trunc 63 | trimSuffix " -" }}
20+ {{- .Release.Name | trunc 28 | trimSuffix " -" }}
2021{{- else }}
21- {{- printf " %s -%s " .Release.Name $name | trunc 63 | trimSuffix " -" }}
22+ {{- printf " %s -%s " .Release.Name $name | trunc 28 | trimSuffix " -" }}
2223{{- end }}
2324{{- end }}
2425{{- end }}
@@ -27,7 +28,7 @@ If release name contains chart name it will be used as a full name.
2728Create chart name and version as used by the chart label.
2829*/ }}
2930{{- define " chart.chart" -}}
30- {{- printf " %s -%s " .Chart.Name .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" }}
31+ {{- printf " %s -%s " .Chart.Name .Chart.Version | replace " +" " _" | trunc 28 | trimSuffix " -" }}
3132{{- end }}
3233
3334{{/*
0 commit comments