Files
thermo/templates/_helpers.tpl
2026-08-05 23:56:11 +02:00

25 lines
836 B
Smarty

{{- define "thermo.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- define "thermo.fullname" -}}
{{- default (include "thermo.name" .) .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- define "thermo.labels" -}}
app.kubernetes.io/name: {{ include "thermo.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" }}
{{- end }}
{{- define "thermo.postgresSelectorLabels" -}}
app: {{ include "thermo.fullname" . }}-postgres
{{- end }}
{{- define "thermo.writerSelectorLabels" -}}
app.kubernetes.io/name: {{ include "thermo.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: writer
{{- end }}