From 70ef71ce61ee71b8fc59130d10e41505bf62ad48 Mon Sep 17 00:00:00 2001 From: Patrick Galbraith Date: Wed, 3 May 2017 19:41:31 -0400 Subject: [PATCH] Increased the name truncation in _helpers.tpl to 63 (#983) --- stable/percona/Chart.yaml | 2 +- stable/percona/templates/_helpers.tpl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/stable/percona/Chart.yaml b/stable/percona/Chart.yaml index 8be79c20b9..5ecfa95d0a 100644 --- a/stable/percona/Chart.yaml +++ b/stable/percona/Chart.yaml @@ -1,5 +1,5 @@ name: percona -version: 0.1.0 +version: 0.2.0 description: free, fully compatible, enhanced, open source drop-in replacement for MySQL keywords: - mysql diff --git a/stable/percona/templates/_helpers.tpl b/stable/percona/templates/_helpers.tpl index f7877c321f..97e2014981 100644 --- a/stable/percona/templates/_helpers.tpl +++ b/stable/percona/templates/_helpers.tpl @@ -1,16 +1,17 @@ {{/* vim: set filetype=mustache: */}} {{/* Expand the name of the chart. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 24 | trimSuffix "-" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} {{/* 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). +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "fullname" -}} {{- $name := default .Chart.Name .Values.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 24 | trimSuffix "-" -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}}