Files
CmiiDeploy/1-outside-deploy/2-helm-chart/charts/all-persistence-volume-claims/templates/_labels.tpl
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

18 lines
547 B
Smarty

{{/* 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 -}}