From d77d9f935946da0fa72d1aa17279eb191ce1ec62 Mon Sep 17 00:00:00 2001 From: Rebecca Valente Date: Tue, 23 Sep 2025 11:09:45 -0300 Subject: [PATCH] (1.0.5) devops: refactor _helpers.tpl: remove comment block, drop $name assignment, and pipe name through trunc 63 and trimsuffix --- charts/wordpress-helm/templates/_helpers.tpl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/charts/wordpress-helm/templates/_helpers.tpl b/charts/wordpress-helm/templates/_helpers.tpl index 3e523fc..ae9a44f 100644 --- a/charts/wordpress-helm/templates/_helpers.tpl +++ b/charts/wordpress-helm/templates/_helpers.tpl @@ -5,13 +5,8 @@ Expand the name of the chart. {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} {{- define "wordpress-website.fullname" -}} -{{- $name := default .Chart.Name .Values.nameOverride }} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} {{/*