# helm_charts_collector-sa.yaml
{{- if and .Values.collector.enabled .Values.serviceAccounts.collector.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "jaeger.collector.serviceAccountName" . }}
  labels:
    app.kubernetes.io/name: {{ include "jaeger.name" . }}
    helm.sh/chart: {{ include "jaeger.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
    app.kubernetes.io/component: collector
{{- end -}}