From 96495f79a5d6902f75767dd5f9274e18ba104f30 Mon Sep 17 00:00:00 2001 From: coutug Date: Tue, 19 Mar 2024 16:50:06 -0400 Subject: [PATCH] update helper for name --- charts/substreams-sink/Chart.yaml | 2 +- charts/substreams-sink/templates/_helpers.tpl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/substreams-sink/Chart.yaml b/charts/substreams-sink/Chart.yaml index c8181ce..963a1d5 100644 --- a/charts/substreams-sink/Chart.yaml +++ b/charts/substreams-sink/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.2 +version: 1.0.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/substreams-sink/templates/_helpers.tpl b/charts/substreams-sink/templates/_helpers.tpl index eef64e1..0a070d0 100644 --- a/charts/substreams-sink/templates/_helpers.tpl +++ b/charts/substreams-sink/templates/_helpers.tpl @@ -13,6 +13,7 @@ If release name contains chart name it will be used as a full name. {{- define "substreams-sink.fullname" -}} {{- if .Values.fullnameOverride }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{/* {{- else if .Values.nameOverride }} {{- $name := default .Chart.Name .Values.nameOverride }} {{- else }} @@ -23,6 +24,9 @@ If release name contains chart name it will be used as a full name. {{- if and .Values.chain (not .Values.fullnameOverride) }} {{- $name = printf "%s-%s" $name .Values.chain -}} {{- end }} +*/}} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} {{- $name | trunc 63 | trimSuffix "-" }} {{- end }} {{- end }}