_helpers-query-scheduler.tpl 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{/*
  2. query-scheduler fullname
  3. */}}
  4. {{- define "loki.querySchedulerFullname" -}}
  5. {{ include "loki.fullname" . }}-query-scheduler
  6. {{- end }}
  7. {{/*
  8. query-scheduler common labels
  9. */}}
  10. {{- define "loki.querySchedulerLabels" -}}
  11. {{ include "loki.labels" . }}
  12. app.kubernetes.io/component: query-scheduler
  13. {{- end }}
  14. {{/*
  15. query-scheduler selector labels
  16. */}}
  17. {{- define "loki.querySchedulerSelectorLabels" -}}
  18. {{ include "loki.selectorLabels" . }}
  19. app.kubernetes.io/component: query-scheduler
  20. {{- end }}
  21. {{/*
  22. query-scheduler image
  23. */}}
  24. {{- define "loki.querySchedulerImage" -}}
  25. {{- $dict := dict "loki" .Values.loki.image "service" .Values.queryScheduler.image "global" .Values.global.image "defaultVersion" .Chart.AppVersion -}}
  26. {{- include "loki.lokiImage" $dict -}}
  27. {{- end }}
  28. {{/*
  29. query-scheduler priority class name
  30. */}}
  31. {{- define "loki.querySchedulerPriorityClassName" -}}
  32. {{- $pcn := coalesce .Values.global.priorityClassName .Values.queryScheduler.priorityClassName -}}
  33. {{- if $pcn }}
  34. priorityClassName: {{ $pcn }}
  35. {{- end }}
  36. {{- end }}