serviceaccount.yaml 629 B

1234567891011121314151617181920
  1. {{- if .Values.serviceAccount.create -}}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. labels:
  6. app: {{ template "docker-registry.name" . }}
  7. chart: {{ .Chart.Name }}-{{ .Chart.Version }}
  8. heritage: {{ .Release.Service }}
  9. release: {{ .Release.Name }}
  10. namespace: {{ .Values.namespace | default .Release.Namespace }}
  11. {{- if .Values.serviceAccount.name }}
  12. name: {{ .Values.serviceAccount.name }}
  13. {{- else }}
  14. name: {{ include "docker-registry.fullname" . }}
  15. {{- end }}
  16. {{- if .Values.serviceAccount.annotations }}
  17. annotations:
  18. {{ toYaml .Values.serviceAccount.annotations | indent 4 }}
  19. {{- end }}
  20. {{- end -}}