18 lines
451 B
YAML
18 lines
451 B
YAML
|
{{- if .Values.serviceAccount.create -}}
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
{{- if .Values.serviceAccount.name }}
|
||
|
name: {{ .Values.serviceAccount.name }}
|
||
|
{{- else }}
|
||
|
name: {{ include "chartmuseum.fullname" . }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
{{ include "chartmuseum.labels.standard" . | indent 4 }}
|
||
|
{{- if .Values.serviceAccount.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
|
||
|
{{- end }}
|
||
|
{{- end -}}
|