feat: Added service account annotations for argo-events-sa.

This commit is contained in:
kostas-theo 2021-04-20 18:02:21 +02:00
parent 8b9e252b04
commit 46f6f24d19

View file

@ -9,6 +9,7 @@ metadata:
annotations: {{ toYaml .Values.serviceAccountAnnotations | nindent 4 }} annotations: {{ toYaml .Values.serviceAccountAnnotations | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.additionalSaNamespaces }} {{- if .Values.additionalSaNamespaces }}
{{ $annotations := .Values.serviceAccountAnnotations }}
{{ $sa := .Values.serviceAccount }} {{ $sa := .Values.serviceAccount }}
{{- range $namespace := .Values.additionalSaNamespaces }} {{- range $namespace := .Values.additionalSaNamespaces }}
--- ---
@ -17,8 +18,8 @@ kind: ServiceAccount
metadata: metadata:
name: {{ $sa }} name: {{ $sa }}
namespace: {{ $namespace }} namespace: {{ $namespace }}
{{- if .Values.serviceAccountAnnotations }} {{- if $annotations }}
annotations: {{ toYaml .Values.serviceAccountAnnotations | nindent 4 }} annotations: {{ toYaml $annotations | nindent 4 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}