github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/thanos/templates/query/serviceaccount.yaml (about)

     1  {{- $query := (include "thanos.query.values" . | fromYaml) -}}
     2  {{- if and $query.enabled .Values.query.serviceAccount.create (not (include "thanos.serviceAccount.useExisting" (dict "component" "query" "context" $))) }}
     3  apiVersion: v1
     4  kind: ServiceAccount
     5  metadata:
     6    name: {{ include "thanos.serviceAccountName" (dict "component" "query" "context" $) }}
     7    namespace: {{ .Release.Namespace | quote }}
     8    labels: {{- include "common.labels.standard" . | nindent 4 }}
     9      app.kubernetes.io/component: query
    10      {{- if .Values.commonLabels }}
    11      {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
    12      {{- end }}
    13    annotations:
    14      {{- if .Values.query.serviceAccount.annotations }}
    15      {{- include "common.tplvalues.render" ( dict "value" .Values.query.serviceAccount.annotations "context" $ ) | nindent 4 }}
    16      {{- end }}
    17      {{- if .Values.commonAnnotations }}
    18      {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
    19      {{- end }}
    20  automountServiceAccountToken: {{ .Values.query.serviceAccount.automountServiceAccountToken }}
    21  {{- end }}