github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/argo-cd/templates/argocd-notifications/serviceaccount.yaml (about) 1 {{- if and .Values.notifications.enabled .Values.notifications.serviceAccount.create }} 2 apiVersion: v1 3 kind: ServiceAccount 4 automountServiceAccountToken: {{ .Values.notifications.serviceAccount.automountServiceAccountToken }} 5 metadata: 6 name: {{ template "argo-cd.notificationsServiceAccountName" . }} 7 namespace: {{ .Release.Namespace | quote }} 8 {{- if .Values.notifications.serviceAccount.annotations }} 9 annotations: 10 {{- range $key, $value := .Values.notifications.serviceAccount.annotations }} 11 {{ $key }}: {{ $value | quote }} 12 {{- end }} 13 {{- end }} 14 labels: 15 {{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }} 16 {{- range $key, $value := .Values.notifications.serviceAccount.labels }} 17 {{ $key }}: {{ $value | quote }} 18 {{- end }} 19 {{- end }}