docs(helm): change `trunc 24` in base charts

The upper limit for a chart name is 63 characters now instead of
14 or 24 in older versions of Kubernetes. This replaces `trunc 24`
in the example chart provided to `trunc 63` to reflect the new
length available.

Closes #1637
release-2.1
Steve Wilkerson 9 years ago committed by Matt Butcher
parent 4db22274eb
commit aa8d178c18
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -2,15 +2,15 @@
{{/* {{/*
Expand the name of the chart. Expand the name of the chart.
*/}} */}}
{{define "name"}}{{default "nginx" .Values.nameOverride | trunc 54 | trimSuffix "-" }}{{end}} {{define "name"}}{{default "nginx" .Values.nameOverride | trunc 63 | trimSuffix "-" }}{{end}}
{{/* {{/*
Create a default fully qualified app name. Create a default fully qualified app name.
We truncate at 54 chars because some Kubernetes name fields are limited to this We truncate at 63 chars because some Kubernetes name fields are limited to this
(by the DNS naming spec). (by the DNS naming spec).
*/}} */}}
{{define "fullname"}} {{define "fullname"}}
{{- $name := default "nginx" .Values.nameOverride -}} {{- $name := default "nginx" .Values.nameOverride -}}
{{printf "%s-%s" .Release.Name $name | trunc 54 | trimSuffix "-" -}} {{printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{end}} {{end}}

Loading…
Cancel
Save