Files
wordyne/Chart/templates/_helpers.tpl

34 lines
891 B
Smarty
Raw Normal View History

2023-03-17 23:13:46 +00:00
{{/*
2023-03-18 23:16:04 +00:00
Define the application name and fullname
2023-03-17 23:13:46 +00:00
*/}}
2023-03-18 23:16:04 +00:00
2023-03-17 23:13:46 +00:00
{{- define "..name" -}}
2023-03-18 23:16:04 +00:00
{{- .Values.site.url | trunc 63 | replace "." "-" | trimSuffix "-" }}
2023-03-17 23:13:46 +00:00
{{- end }}
{{- define "..fullname" -}}
2023-03-18 23:16:04 +00:00
{{ include "..name" . }}
2023-03-17 23:13:46 +00:00
{{- end }}
{{/*
2023-03-18 23:16:04 +00:00
Define the chart name and version
2023-03-17 23:13:46 +00:00
*/}}
2023-03-18 23:16:04 +00:00
2023-03-17 23:13:46 +00:00
{{- define "..chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
2023-03-18 23:16:04 +00:00
Define the chart common labels
2023-03-17 23:13:46 +00:00
*/}}
{{- define "..labels" -}}
helm.sh/chart: {{ include "..chart" . }}
app.kubernetes.io/name: {{ include "..name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
2023-03-18 23:16:04 +00:00
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
cloudyne.systems/customer: {{ .Values.customer.name }}
cloudyne.systems/site: {{ .Values.site.url }}
cloudyne.systems/package: {{ .Values.customer.package.size }}
2023-03-17 23:13:46 +00:00
{{- end }}