fix: common.serviceAccountName should accepts $serviceAccount

This commit is contained in:
Chi-En Wu
2020-04-23 16:35:21 +08:00
parent b5cae82278
commit 9bd8494e4f
6 changed files with 21 additions and 14 deletions

View File

@ -3,7 +3,7 @@
{{- define "common.serviceAccount.metadata" -}}
{{- $top := first . -}}
{{- $serviceAccount := index . 1 -}}
name: {{ include "common.serviceAccountName" $top }}
name: {{ include "common.serviceAccountName" . }}
{{- with $serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 2 }}