From dc798372c41b253bf58e095220279a8e0f120de9 Mon Sep 17 00:00:00 2001 From: dgtown Date: Wed, 28 Feb 2024 15:41:21 -0500 Subject: [PATCH] trim . at end of chart name if version gets cut off by character limit --- applications/web/templates/_helpers.tpl | 2 +- applications/worker/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/web/templates/_helpers.tpl b/applications/web/templates/_helpers.tpl index 9c337aeea..92fbabc96 100644 --- a/applications/web/templates/_helpers.tpl +++ b/applications/web/templates/_helpers.tpl @@ -28,7 +28,7 @@ If release name contains chart name it will be used as a full name. Create chart name and version as used by the chart label. */}} {{- define "docker-template.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" | trimSuffix "."}} {{- end }} {{/* diff --git a/applications/worker/templates/_helpers.tpl b/applications/worker/templates/_helpers.tpl index 77dcf47eb..aa493bba9 100644 --- a/applications/worker/templates/_helpers.tpl +++ b/applications/worker/templates/_helpers.tpl @@ -28,7 +28,7 @@ If release name contains chart name it will be used as a full name. Create chart name and version as used by the chart label. */}} {{- define "docker-template.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" | trimSuffix "."}} {{- end }} {{/*