{{/* vim: set filetype=mustache: */}}
{{/*
Create chart name and version as used by the chart label.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "uavcloud.pvc.chart" -}}
{{- printf "%s-%s" $.Chart.Name $.Chart.Version | replace "+" "_" | trunc 63 }}
{{- end }}

{{/*
Kubernetes standard labels
*/}}
{{- define "uavcloud.pvc.labels.standard" -}}
helm.sh/chart: {{ include "uavcloud.pvc.chart" $ }}
app.kubernetes.io/version: {{ $.Values.global.image.tag }}
{{- end -}}

