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

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