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