github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-node-exporter/templates/serviceaccount.yaml (about)

     1  {{- if and .Values.rbac.create .Values.serviceAccount.create -}}
     2  apiVersion: v1
     3  kind: ServiceAccount
     4  metadata:
     5    name: {{ include "prometheus-node-exporter.serviceAccountName" . }}
     6    namespace: {{ include "prometheus-node-exporter.namespace" . }}
     7    labels: 
     8      {{- include "prometheus-node-exporter.labels" . | nindent 4 }}
     9    {{- with .Values.serviceAccount.annotations }}
    10    annotations:
    11      {{- toYaml . | nindent 4 }}
    12    {{- end }}
    13  {{- if or .Values.serviceAccount.imagePullSecrets .Values.global.imagePullSecrets }}
    14  imagePullSecrets:
    15    {{- include "prometheus-node-exporter.imagePullSecrets" (dict "Values" .Values "imagePullSecrets" .Values.serviceAccount.imagePullSecrets) | indent 2 }}
    16  {{- end }}
    17  {{- end -}}