github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/local-charts/prometheus/templates/server/serviceaccount.yaml (about) 1 {{- if .Values.server.enabled -}} 2 {{- if .Values.serviceAccounts.server.create }} 3 apiVersion: v1 4 kind: ServiceAccount 5 metadata: 6 labels: 7 {{- include "prometheus.server.labels" . | nindent 4 }} 8 name: {{ template "prometheus.serviceAccountName.server" . }} 9 {{ include "prometheus.namespace" . | indent 2 }} 10 annotations: 11 {{ toYaml .Values.serviceAccounts.server.annotations | indent 4 }} 12 {{- end }} 13 {{- end }}