_helpers.tpl 875 Bytes
Newer Older
1 2 3 4
{{/*
Expand the name of the chart.
*/}}
{{- define "web-app-minio.name" -}}
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
5 6
{{- default .Chart.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
7 8

{{/*
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
9
Create chart name and version as used by the chart label.
10
*/}}
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
11 12
{{- define "web-app-minio.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
13 14 15
{{- end }}

{{/*
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
16
Selector labels
17
*/}}
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
18 19 20
{{- define "web-app-minio.selectorLabels" -}}
app.kubernetes.io/name: {{ include "web-app-minio.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
21 22 23 24 25 26 27 28 29 30 31 32 33
{{- end }}

{{/*
Common labels
*/}}
{{- define "web-app-minio.labels" -}}
helm.sh/chart: {{ include "web-app-minio.chart" . }}
{{ include "web-app-minio.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}