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