Files
minimal-test/Chart/templates/_helpers.tpl
Lars 0ceead288a
Some checks failed
Upload Helm Chart / Explore-Gitea-Actions (push) Failing after 2s
Created test chart
2024-01-22 12:15:02 +01:00

31 lines
688 B
Smarty

{{/*
Define the application name and fullname
*/}}
{{- define "..name" -}}
{{- .Chart.Name | trunc 63 }}
{{- end }}
{{- define "..fullname" -}}
{{ include "..name" . }}
{{- end }}
{{/*
Define the chart name and version
*/}}
{{- define "..chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Define the chart common labels
*/}}
{{- define "..labels" -}}
helm.sh/chart: {{ include "..chart" . }}
app.kubernetes.io/name: {{ include "..name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}