Add thermo history Helm chart

This commit is contained in:
Bitó Attila
2026-08-05 23:56:11 +02:00
commit 6b7dc1840d
10 changed files with 473 additions and 0 deletions

24
templates/_helpers.tpl Normal file
View File

@@ -0,0 +1,24 @@
{{- 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 }}