From 5dfd14a8d955791eba079e2b8d507111e1f352f3 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 18 Jul 2026 05:32:44 +0000 Subject: [PATCH] Add nginx-chart/templates/_helpers.tpl --- nginx-chart/templates/_helpers.tpl | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nginx-chart/templates/_helpers.tpl diff --git a/nginx-chart/templates/_helpers.tpl b/nginx-chart/templates/_helpers.tpl new file mode 100644 index 0000000..de00dcf --- /dev/null +++ b/nginx-chart/templates/_helpers.tpl @@ -0,0 +1,33 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "nginx-chart.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +*/}} +{{- define "nginx-chart.fullname" -}} + +{{- if .Values.fullnameOverride }} + +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} + +{{- else }} + +{{- $name := default .Chart.Name .Values.nameOverride }} + +{{- if contains $name .Release.Name }} + +{{- .Release.Name | trunc 63 | trimSuffix "-" }} + +{{- else }} + +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} + +{{- end }} + +{{- end }} + +{{- end }} \ No newline at end of file