github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/thanos-ruler/serviceaccount.yaml (about)

     1  {{- if and .Values.thanosRuler.enabled .Values.thanosRuler.serviceAccount.create }}
     2  apiVersion: v1
     3  kind: ServiceAccount
     4  metadata:
     5    name: {{ template "kube-prometheus-stack.thanosRuler.serviceAccountName" . }}
     6    namespace: {{ template "kube-prometheus-stack.namespace" . }}
     7    labels:
     8      app: {{ template "kube-prometheus-stack.thanosRuler.name" . }}
     9      app.kubernetes.io/name: {{ template "kube-prometheus-stack.thanosRuler.name" . }}
    10      app.kubernetes.io/component: thanos-ruler
    11  {{- include "kube-prometheus-stack.labels" . | indent 4 -}}
    12  {{- if .Values.thanosRuler.serviceAccount.annotations }}
    13    annotations:
    14  {{ toYaml .Values.thanosRuler.serviceAccount.annotations | indent 4 }}
    15  {{- end }}
    16  {{- if .Values.global.imagePullSecrets }}
    17  imagePullSecrets:
    18  {{ toYaml .Values.global.imagePullSecrets | indent 2 }}
    19  {{- end }}
    20  {{- end }}