# All argo-events services are bound to the "argo-events" service account. # In RBAC enabled setups, this SA is bound to specific roles. apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Values.serviceAccount }} namespace: {{ .Release.Namespace }} {{- with .Values.serviceAccountAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- if .Values.additionalSaNamespaces }} {{ $annotations := .Values.serviceAccountAnnotations }} {{ $sa := .Values.serviceAccount }} {{- range $namespace := .Values.additionalSaNamespaces }} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ $sa }} namespace: {{ $namespace }} {{- with $annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }}