feat(cronjob): add cronjob activeDeadlineSeconds options

This commit is contained in:
weian
2022-09-30 14:38:16 +08:00
parent 4383dfb7a5
commit e62d31f8b9
3 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,9 @@ spec:
labels:
{{- include "common.selectorLabels" $top | nindent 8 }}
spec:
{{- with $cronJob.activeDeadlineSeconds }}
activeDeadlineSeconds: {{ . }}
{{- end }}
template:
{{- include "common.pod.template" (list $top $pod $serviceAccount "common.cronJob.pod") | nindent 8 }}
{{- end }}