_helpers-querier.tpl 928 B

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