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

24 lines
747 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 "srs-cluster.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 }}
{{- end }}
{{/*
Create the node affinity to determine the deployment of environment
*/}}
{{- define "srs-cluster.affinity" -}}
{{- with .Values.global.affinity }}
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.env
operator: In
values:
- {{ .k8sNodeEnv }}
{{- end }}
{{- end }}