diff --git a/charts/argo-events/Chart.yaml b/charts/argo-events/Chart.yaml index b0770954..8a5a85b5 100644 --- a/charts/argo-events/Chart.yaml +++ b/charts/argo-events/Chart.yaml @@ -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 diff --git a/charts/argo-events/templates/argo-events-sa.yaml b/charts/argo-events/templates/argo-events-sa.yaml index 5042b4b8..d99ab765 100644 --- a/charts/argo-events/templates/argo-events-sa.yaml +++ b/charts/argo-events/templates/argo-events-sa.yaml @@ -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 }}