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 apiVersion: v2
description: A Helm chart to install Argo-Events in k8s Cluster description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events name: argo-events
version: 1.4.2 version: 1.5.0
keywords: keywords:
- argo-events - argo-events
- sensor-controller - sensor-controller

View file

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