* feat: sa annotations Signed-off-by: kostas-theo <ktheo@oneconcern.com> * fix: review recommendations Signed-off-by: kostas-theo <ktheo@oneconcern.com> * fix: Apply review changes Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
25 lines
756 B
YAML
25 lines
756 B
YAML
# 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 }}
|