serviceaccount.yaml 944 B

123456789101112131415161718192021
  1. {{- if .Values.serviceAccount.create }}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: {{ template "zookeeper.serviceAccountName" . }}
  6. namespace: {{ template "zookeeper.namespace" . }}
  7. labels: {{- include "common.labels.standard" . | nindent 4 }}
  8. app.kubernetes.io/component: zookeeper
  9. role: zookeeper
  10. {{- if .Values.commonLabels }}
  11. {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- end }}
  13. annotations:
  14. {{- if .Values.commonAnnotations }}
  15. {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  16. {{- end }}
  17. {{- if .Values.serviceAccount.annotations }}
  18. {{- include "common.tplvalues.render" ( dict "value" .Values.serviceAccount.annotations "context" $ ) | nindent 4 }}
  19. {{- end }}
  20. automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
  21. {{- end }}