MetaTrader5-Docker-Image/charts/mt5/templates/_helpers.tpl
Bast fb1a3d8581
Some checks failed
MT5 Helm GitOps Deploy / build-and-deploy (push) Failing after 4s
first commit
2026-11-03 13:51:32 -06:00

32 lines
871 B
Smarty

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