github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/local-charts/prometheus/charts/kube-state-metrics/templates/serviceaccount.yaml (about)

     1  {{- if .Values.serviceAccount.create -}}
     2  apiVersion: v1
     3  kind: ServiceAccount
     4  metadata:
     5    labels:
     6      app.kubernetes.io/name: {{ template "kube-state-metrics.name" . }}
     7      helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
     8      app.kubernetes.io/managed-by: {{ .Release.Service }}
     9      app.kubernetes.io/instance: {{ .Release.Name }}
    10    name: {{ template "kube-state-metrics.fullname" . }}
    11    namespace: {{ template "kube-state-metrics.namespace" . }}
    12  {{- if .Values.serviceAccount.annotations }}
    13    annotations:
    14  {{ toYaml .Values.serviceAccount.annotations | indent 4 }}
    15  {{- end }}
    16  imagePullSecrets:
    17  {{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
    18  {{- end -}}