github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/thanos/templates/serviceaccount.yaml (about) 1 {{- if and .Values.serviceAccount.create (not .Values.existingServiceAccount) }} 2 apiVersion: v1 3 kind: ServiceAccount 4 metadata: 5 name: {{ include "thanos.serviceAccountName" (dict "component" "" "context" $) }} 6 namespace: {{ .Release.Namespace | quote }} 7 labels: {{- include "common.labels.standard" . | nindent 4 }} 8 app.kubernetes.io/component: storegateway 9 {{- if .Values.commonLabels }} 10 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 11 {{- end }} 12 annotations: 13 {{- if .Values.serviceAccount.annotations }} 14 {{- include "common.tplvalues.render" ( dict "value" .Values.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.serviceAccount.automountServiceAccountToken }} 20 {{- end }}