github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/prometheus/serviceaccount.yaml (about) 1 {{- if and .Values.prometheus.enabled .Values.prometheus.serviceAccount.create }} 2 apiVersion: v1 3 kind: ServiceAccount 4 metadata: 5 name: {{ template "kube-prometheus-stack.prometheus.serviceAccountName" . }} 6 namespace: {{ template "kube-prometheus-stack.namespace" . }} 7 labels: 8 app: {{ template "kube-prometheus-stack.name" . }}-prometheus 9 app.kubernetes.io/name: {{ template "kube-prometheus-stack.name" . }}-prometheus 10 app.kubernetes.io/component: prometheus 11 {{ include "kube-prometheus-stack.labels" . | indent 4 }} 12 {{- if .Values.prometheus.serviceAccount.annotations }} 13 annotations: 14 {{ toYaml .Values.prometheus.serviceAccount.annotations | indent 4 }} 15 {{- end }} 16 {{- if .Values.global.imagePullSecrets }} 17 imagePullSecrets: 18 {{ include "kube-prometheus-stack.imagePullSecrets" . | trim | indent 2 }} 19 {{- end }} 20 {{- end }}