mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix(docs): fix nginx example chart name
The name was not correctly truncating, which occasionally resulted in naming errors, since Kubernetes restricts names to 24 characters.
This commit is contained in:
parent
59806b40a8
commit
628e0b7cec
1 changed files with 4 additions and 1 deletions
|
|
@ -10,4 +10,7 @@ Create a default fully qualified app name.
|
|||
We truncate at 24 chars because some Kubernetes name fields are limited to this
|
||||
(by the DNS naming spec).
|
||||
*/}}
|
||||
{{define "fullname"}}{{.Release.Name}}-{{default "nginx" .Values.nameOverride | trunc 24 }}{{end}}
|
||||
{{define "fullname"}}
|
||||
{{- $name := default "nginx" .Values.nameOverride -}}
|
||||
{{printf "%s-%s" .Release.Name $name | trunc 24 -}}
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue