Files
CmiiDeploy/1-outside-deploy/2-helm-chart/charts/storage-class-gfs/templates/_helpers.tpl
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

28 lines
909 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 "storage-class-gfs.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 }}
{{- end }}
{{/*
Kubernetes standard labels
*/}}
{{- define "storage-class-gfs.standard" -}}
cmii.type: {{ .Values.application.type }}
cmii.app: {{ .Values.application.name }}
helm.sh/chart: {{ include "storage-class-gfs.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{/*
Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector
*/}}
{{- define "storage-class-gfs.labels.matchLabels" -}}
cmii.type: {{ .Values.application.type }}
cmii.app: {{ .Values.application.name }}
{{- end -}}