- {{- if .Values.frontend.serviceAccount.create }}
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: {{ include "shuffle.frontend.serviceAccount.name" . }}
- namespace: {{ include "common.names.namespace" . | quote }}
- labels: {{- include "shuffle.frontend.labels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
- {{- if or .Values.frontend.serviceAccount.annotations .Values.commonAnnotations }}
- {{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.frontend.serviceAccount.annotations .Values.commonAnnotations) "context" .) }}
- annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
- {{- end }}
- automountServiceAccountToken: {{ .Values.frontend.serviceAccount.automountServiceAccountToken }}
- {{- include "shuffle.frontend.serviceAccount.imagePullSecrets" . | nindent 0 }}
- {{- end }}
|