{{- with .Values.lokiCanary -}} {{- if .enabled -}} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "loki-canary.fullname" $ }} namespace: {{ $.Release.Namespace }} labels: {{- include "loki-canary.labels" $ | nindent 4 }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: {{ $.Values.serviceAccount.automountServiceAccountToken }} {{- with $.Values.serviceAccount.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 2 }} {{- end }} {{- end }} {{- end }}