{{/*
  kestrelos fullname
*/}}
{{- define "kestrelos.fullname" -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
  Common labels
*/}}
{{- define "kestrelos.labels" -}}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app.kubernetes.io/name: kestrelos
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end -}}

{{/*
  Selector labels
*/}}
{{- define "kestrelos.selectorLabels" -}}
app.kubernetes.io/name: kestrelos
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
