# helm_charts_agent-sa.yaml
{{- if and .Values.agent.enabled .Values.serviceAccounts.agent.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "jaeger.agent.name" . }}
  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: agent
{{- end -}}