fix: review recommendations

Signed-off-by: kostas-theo <ktheo@oneconcern.com>
This commit is contained in:
kostas-theo 2021-05-25 16:29:48 +02:00
parent 26075c4bf1
commit 5744ad8c6c
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events
version: 1.4.2
version: 1.5.0
keywords:
- argo-events
- sensor-controller

View file

@ -5,8 +5,8 @@ kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccountAnnotations }}
annotations: {{- toYaml .Values.serviceAccountAnnotations | nindent 4 }}
{{- with .Values.serviceAccountAnnotations }}
annotations: {{- toYaml .| nindent 4 }}
{{- end }}
{{- if .Values.additionalSaNamespaces }}
{{ $annotations := .Values.serviceAccountAnnotations }}
@ -18,8 +18,8 @@ kind: ServiceAccount
metadata:
name: {{ $sa }}
namespace: {{ $namespace }}
{{- if $annotations }}
annotations: {{- toYaml $annotations | nindent 4 }}
{{- with $annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}