From 78ac91ab9ef2ea5547fdfeee93f7bbe3be0d1581 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Thu, 2 Mar 2017 13:44:00 +0530 Subject: [PATCH] sugarcrm: increase resource name truncation and trim - suffix --- incubator/sugarcrm/templates/_helpers.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/incubator/sugarcrm/templates/_helpers.tpl b/incubator/sugarcrm/templates/_helpers.tpl index 4355810df..3d76d82dd 100644 --- a/incubator/sugarcrm/templates/_helpers.tpl +++ b/incubator/sugarcrm/templates/_helpers.tpl @@ -3,7 +3,7 @@ Expand the name of the chart. */}} {{- define "name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 24 -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} {{/* @@ -12,7 +12,7 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this */}} {{- define "fullname" -}} {{- $name := default .Chart.Name .Values.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 24 -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} {{/* @@ -20,5 +20,5 @@ 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 "mariadb.fullname" -}} -{{- printf "%s-%s" .Release.Name "mariadb" | trunc 24 -}} +{{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}}