Files
infrastructure/clusters/cl01tl/helm/audiobookshelf/templates/_helpers.tpl
Alex Lebens e92246ec8b
All checks were successful
lint-test-helm / lint-helm (pull_request) Successful in 1m14s
lint-test-helm / validate-kubeconform (pull_request) Successful in 55s
feat: use common 'custom' namespace for helper'
2026-04-20 15:10:06 -05:00

28 lines
561 B
Smarty

{{/*
Common labels
*/}}
{{- define "custom.labels" -}}
{{ include "custom.selectorLabels" $ }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "custom.selectorLabels" -}}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
{{- end }}
{{/*
NFS names
*/}}
{{- define "custom.booksNfsName" -}}
audiobookshelf-books-nfs-storage
{{- end -}}
{{- define "custom.audiobooksNfsName" -}}
audiobookshelf-audiobooks-nfs-storage
{{- end -}}
{{- define "custom.podcastsNfsName" -}}
audiobookshelf-podcasts-nfs-storage
{{- end -}}