{{- if and (eq .Values.storage.type "cassandra") .Values.schema.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "jaeger.cassandraSchema.serviceAccountName" . }}
  namespace: {{ .Release.Namespace  }}
  labels:
    {{- include "jaeger.labels" . | nindent 4 }}
    app.kubernetes.io/component: cassandra-schema
{{- end -}}
