From 5e41908e5172e4b012d960056c237b79ddcffbc4 Mon Sep 17 00:00:00 2001 From: ties Date: Sun, 30 Mar 2025 12:29:18 +0000 Subject: [PATCH] Update templates/_helpers.tpl --- templates/_helpers.tpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index bdb9d07..0aef1de 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -1,7 +1,7 @@ {{/* Expand the name of the chart. */}} -{{- define "stwalwart-mail.name" -}} +{{- define "stalwart-mail.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} @@ -10,7 +10,7 @@ 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 "stwalwart-mail.fullname" -}} +{{- define "stalwart-mail.fullname" -}} {{- if .Values.fullnameOverride }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} {{- else }} @@ -26,16 +26,16 @@ 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 "stwalwart-mail.chart" -}} +{{- define "stalwart-mail.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} {{/* Common labels */}} -{{- define "stwalwart-mail.labels" -}} -helm.sh/chart: {{ include "stwalwart-mail.chart" . }} -{{ include "stwalwart-mail.selectorLabels" . }} +{{- define "stalwart-mail.labels" -}} +helm.sh/chart: {{ include "stalwart-mail.chart" . }} +{{ include "stalwart-mail.selectorLabels" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{/* Selector labels */}} -{{- define "stwalwart-mail.selectorLabels" -}} -app.kubernetes.io/name: {{ include "stwalwart-mail.name" . }} +{{- define "stalwart-mail.selectorLabels" -}} +app.kubernetes.io/name: {{ include "stalwart-mail.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} {{/* Create the name of the service account to use */}} -{{- define "stwalwart-mail.serviceAccountName" -}} +{{- define "stalwart-mail.serviceAccountName" -}} {{- if .Values.serviceAccount.create }} -{{- default (include "stwalwart-mail.fullname" .) .Values.serviceAccount.name }} +{{- default (include "stalwart-mail.fullname" .) .Values.serviceAccount.name }} {{- else }} {{- default "default" .Values.serviceAccount.name }} {{- end }}