Add thermo history Helm chart
This commit is contained in:
24
templates/_helpers.tpl
Normal file
24
templates/_helpers.tpl
Normal 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 }}
|
||||
Reference in New Issue
Block a user