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

@ -4,6 +4,7 @@
{{- $top := first . -}}
{{- $deployment := index . 1 -}}
{{- $autoscaling := index . 2 -}}
{{- $serviceAccount := index . 3 -}}
apiVersion: apps/v1
kind: Deployment
metadata:
@ -16,7 +17,7 @@ spec:
matchLabels:
{{- include "common.selectorLabels" $top | nindent 6 }}
template:
{{- include "common.pod.template" . | nindent 4 }}
{{- include "common.pod.template" (list $top $deployment $serviceAccount) | nindent 4 }}
{{- end -}}
{{- define "common.deployment" -}}