_helpers-index-gateway.tpl 1011 B

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