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