serviceaccount.yaml 926 B

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