serviceaccount-compactor.yaml 628 B

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