serviceaccount.yaml 904 B

1234567891011121314151617181920
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if .Values.serviceAccount.create }}
  6. apiVersion: v1
  7. kind: ServiceAccount
  8. metadata:
  9. name: {{ template "minio.serviceAccountName" . }}
  10. namespace: {{ include "common.names.namespace" . | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- if or .Values.serviceAccount.annotations .Values.commonAnnotations }}
  13. {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.annotations .Values.commonAnnotations ) "context" . ) }}
  14. annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }}
  15. {{- end }}
  16. automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
  17. secrets:
  18. - name: {{ include "common.names.fullname" . }}
  19. {{- end }}