MetaTrader5-Docker-Goldex/charts/mt5/templates/_helpers.tpl

33 lines
871 B
Smarty
Raw Normal View History

2026-11-06 13:22:28 +00:00
{{- define "mt5.fullname" -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "mt5.labels" -}}
app.kubernetes.io/name: mt5
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Values.image.tag | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
{{- end -}}
{{- define "mt5.selectorLabels" -}}
app.kubernetes.io/name: mt5
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{- define "mt5.secretName" -}}
{{- if .Values.auth.existingSecret -}}
{{ .Values.auth.existingSecret }}
{{- else -}}
{{ include "mt5.fullname" . }}-auth
{{- end -}}
{{- end -}}
{{- define "mt5.claimName" -}}
{{- if .Values.persistence.existingClaim -}}
{{ .Values.persistence.existingClaim }}
{{- else -}}
{{ include "mt5.fullname" . }}-config
{{- end -}}
{{- end -}}