blob: 2c1f79a682745beb7077e2f276d3364c100e89fd [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- with .Values.lokiCanary -}}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00002{{- if .enabled -}}
3---
4apiVersion: v1
5kind: ServiceAccount
6metadata:
7 name: {{ include "loki-canary.fullname" $ }}
Giovanni Tirloni59219b62024-04-09 14:50:25 -03008 namespace: {{ $.Release.Namespace }}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00009 labels:
10 {{- include "loki-canary.labels" $ | nindent 4 }}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +000011 {{- with .annotations }}
Giovanni Tirloni59219b62024-04-09 14:50:25 -030012 annotations:
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +000013 {{- toYaml . | nindent 4 }}
14 {{- end }}
15automountServiceAccountToken: {{ $.Values.serviceAccount.automountServiceAccountToken }}
16{{- with $.Values.serviceAccount.imagePullSecrets }}
17imagePullSecrets:
18 {{- toYaml . | nindent 2 }}
19{{- end }}
20{{- end }}
21{{- end }}