diff --git a/docs/examples/nginx/templates/_helpers.tpl b/docs/examples/nginx/templates/_helpers.tpl index 11d18431d8d2b88e41019ad17f7db37c40fb76dc..3c085dd7f42d9d0a92c5e8d239a359f78b7559ad 100644 --- a/docs/examples/nginx/templates/_helpers.tpl +++ b/docs/examples/nginx/templates/_helpers.tpl @@ -2,15 +2,15 @@ {{/* Expand the name of the chart. */}} -{{define "name"}}{{default "nginx" .Values.nameOverride | trunc 24 | trimSuffix "-" }}{{end}} +{{define "name"}}{{default "nginx" .Values.nameOverride | trunc 54 | trimSuffix "-" }}{{end}} {{/* Create a default fully qualified app name. -We truncate at 24 chars because some Kubernetes name fields are limited to this +We truncate at 54 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{define "fullname"}} {{- $name := default "nginx" .Values.nameOverride -}} -{{printf "%s-%s" .Release.Name $name | trunc 24 | trimSuffix "-" -}} +{{printf "%s-%s" .Release.Name $name | trunc 54 | trimSuffix "-" -}} {{end}}