From 3dce7eff03ade474d1f1900d427ca6040fd507e2 Mon Sep 17 00:00:00 2001 From: Dylan Decrulle Date: Thu, 22 Dec 2022 11:57:14 +0100 Subject: [PATCH] avoid format error when no nameOverride provided --- charts/stromae-v2/Chart.yaml | 2 +- charts/stromae-v2/templates/_helpers.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/stromae-v2/Chart.yaml b/charts/stromae-v2/Chart.yaml index 5a7861b..e97c069 100644 --- a/charts/stromae-v2/Chart.yaml +++ b/charts/stromae-v2/Chart.yaml @@ -9,5 +9,5 @@ dependencies: repository: https://charts.bitnami.com/bitnami type: application -version: 0.5.6 +version: 0.5.7 appVersion: "1.16.0" diff --git a/charts/stromae-v2/templates/_helpers.tpl b/charts/stromae-v2/templates/_helpers.tpl index bc4ded7..c14c50c 100644 --- a/charts/stromae-v2/templates/_helpers.tpl +++ b/charts/stromae-v2/templates/_helpers.tpl @@ -4,11 +4,11 @@ Expand the name of the chart. {{- define "stromae.api.name" -}} -{{- .Values.api.nameOverride | default (printf "-%s-api" .Chart.Name ) }} +{{- .Values.api.nameOverride | default (printf "%s-api" .Chart.Name ) }} {{- end }} {{- define "stromae.ui.name" -}} -{{- .Values.ui.nameOverride | default (printf "-%s-ui" .Chart.Name ) }} +{{- .Values.ui.nameOverride | default (printf "%s-ui" .Chart.Name ) }} {{- end }} {{/*