restore with blocks for service account name and service account annotations

Signed-off-by: reinvantveer <reinvantveer@gmail.com>
This commit is contained in:
reinvantveer 2021-07-14 18:49:44 +02:00
parent 8822b8a74a
commit 232e72efbc

View file

@ -23,9 +23,13 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $.Values.workflow.serviceAccount.name }}
{{- with $.Values.workflow.serviceAccount.name }}
name: {{ . }}
{{- end }}
namespace: {{ $namespace }}
{{- with $.Values.workflow.serviceAccount.annotations }}
annotations:
{{- toYaml $.Values.workflow.serviceAccount.annotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}