Initial commit
This commit is contained in:
32
charts/loki/templates/backend/_helpers-backend.tpl
Normal file
32
charts/loki/templates/backend/_helpers-backend.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{{/*
|
||||
backend fullname
|
||||
*/}}
|
||||
{{- define "loki.backendFullname" -}}
|
||||
{{ include "loki.name" . }}-backend
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
backend common labels
|
||||
*/}}
|
||||
{{- define "loki.backendLabels" -}}
|
||||
{{ include "loki.labels" . }}
|
||||
app.kubernetes.io/component: backend
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
backend selector labels
|
||||
*/}}
|
||||
{{- define "loki.backendSelectorLabels" -}}
|
||||
{{ include "loki.selectorLabels" . }}
|
||||
app.kubernetes.io/component: backend
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
backend priority class name
|
||||
*/}}
|
||||
{{- define "loki.backendPriorityClassName" -}}
|
||||
{{- $pcn := coalesce .Values.global.priorityClassName .Values.backend.priorityClassName -}}
|
||||
{{- if $pcn }}
|
||||
priorityClassName: {{ $pcn }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user