serviceaccount.yaml 643 B

12345678910111213141516171819202122
  1. {{ if .Values.serviceAccount.create }}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: {{ include "loki.serviceAccountName" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.labels" . | nindent 4 }}
  9. {{- with .Values.serviceAccount.labels }}
  10. {{- toYaml . | nindent 4 }}
  11. {{- end }}
  12. {{- with .Values.serviceAccount.annotations }}
  13. annotations:
  14. {{- toYaml . | nindent 4 }}
  15. {{- end }}
  16. automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
  17. {{- with .Values.serviceAccount.imagePullSecrets }}
  18. imagePullSecrets:
  19. {{- toYaml . | nindent 2 }}
  20. {{- end }}
  21. {{- end }}