fix name helper
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 17s

This commit is contained in:
2025-05-24 01:35:57 -05:00
parent cb5c199d03
commit e98973b467
7 changed files with 38 additions and 38 deletions

View File

@@ -2,7 +2,7 @@
Expand the name of the chart.
*/}}
{{- define "cluster.name" -}}
{{- if not (empty .Values.nameOverride ) }}
{{- if .Values.nameOverride }}
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-postgresql-%s" .Release.Name ((semver .Values.cluster.image.tag).Major | toString) | trunc 63 | trimSuffix "-" -}}