serviceaccount.yaml 875 B

12345678910111213141516171819
  1. {{- if .Values.serviceAccount.create }}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: {{ include "postgresql.serviceAccountName" . }}
  6. namespace: {{ .Release.Namespace | quote }}
  7. labels: {{- include "common.labels.standard" . | nindent 4 }}
  8. {{- if .Values.commonLabels }}
  9. {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
  10. {{- end }}
  11. annotations:
  12. {{- if .Values.commonAnnotations }}
  13. {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  14. {{- end }}
  15. {{- if .Values.serviceAccount.annotations }}
  16. {{- include "common.tplvalues.render" ( dict "value" .Values.serviceAccount.annotations "context" $ ) | nindent 4 }}
  17. {{- end }}
  18. automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
  19. {{- end }}