From 46f6f24d19ab286634b777e81143ae09ee2e0767 Mon Sep 17 00:00:00 2001 From: kostas-theo Date: Tue, 20 Apr 2021 18:02:21 +0200 Subject: [PATCH] feat: Added service account annotations for argo-events-sa. --- charts/argo-events/templates/argo-events-sa.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/argo-events/templates/argo-events-sa.yaml b/charts/argo-events/templates/argo-events-sa.yaml index 00aa8da3..8e20b93d 100644 --- a/charts/argo-events/templates/argo-events-sa.yaml +++ b/charts/argo-events/templates/argo-events-sa.yaml @@ -9,6 +9,7 @@ metadata: annotations: {{ toYaml .Values.serviceAccountAnnotations | nindent 4 }} {{- end }} {{- if .Values.additionalSaNamespaces }} +{{ $annotations := .Values.serviceAccountAnnotations }} {{ $sa := .Values.serviceAccount }} {{- range $namespace := .Values.additionalSaNamespaces }} --- @@ -17,8 +18,8 @@ kind: ServiceAccount metadata: name: {{ $sa }} namespace: {{ $namespace }} - {{- if .Values.serviceAccountAnnotations }} - annotations: {{ toYaml .Values.serviceAccountAnnotations | nindent 4 }} + {{- if $annotations }} + annotations: {{ toYaml $annotations | nindent 4 }} {{- end }} {{- end }} {{- end }}