{{/* vim: set filetype=mustache: */}} {{/* Expand the name of the chart. */}} {{- define "file-upload.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} {{/* Helm required labels */}} {{- define "file-upload.labels" -}} heritage: {{ .Release.Service }} release: {{ .Release.Name }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} {{- end -}} {{/* matchLabels */}} {{- define "file-upload.matchLabels" -}} release: {{ .Release.Name }} app: "{{ template "file-upload.name" . }}" {{- end -}}