{{- if and .Values.query.enabled .Values.query.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "jaeger.query.serviceAccountName" . }} labels: {{- include "jaeger.labels" . | nindent 4 }} app.kubernetes.io/component: query {{- with .Values.query.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: {{ .Values.query.serviceAccount.automountServiceAccountToken }} {{- end -}}