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 }}
{{- 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 }}