add the serviceAccount of deployment (#1543)

Co-authored-by: 977231903@qq.com <>
This commit is contained in:
Mikael
2022-02-15 20:57:14 +08:00
committed by GitHub
parent b215fa3ee6
commit a078f5d764
4 changed files with 41 additions and 33 deletions

View File

@@ -11,8 +11,9 @@ spec:
jobTemplate:
spec:
template:
spec:
containers:
spec:{{if .ServiceAccount}}
serviceAccountName: {{.ServiceAccount}}{{end}}
{{end}}containers:
- name: {{.Name}}
image: # todo image url
resources: