_helpers-table-manager.tpl 1011 B

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