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

@ -9,6 +9,7 @@ spec:
{{- $top := first . -}}
{{- $cronJob := index . 1 -}}
{{- $pod := index . 2 -}}
{{- $serviceAccount := index . 3 -}}
apiVersion: batch/v1beta1
kind: CronJob
metadata:
@ -30,7 +31,7 @@ spec:
{{- include "common.selectorLabels" $top | nindent 8 }}
spec:
template:
{{- include "common.pod.template" (list $top $pod "common.cronJob.pod") | nindent 8 }}
{{- include "common.pod.template" (list $top $pod $serviceAccount "common.cronJob.pod") | nindent 8 }}
{{- end -}}
{{- define "common.cronJob" -}}