feat(cronjob): add cronjob activeDeadlineSeconds options
This commit is contained in:
@@ -14,4 +14,4 @@ type: library
|
||||
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
version: 1.1.0
|
||||
version: 1.2.0
|
||||
|
@@ -183,6 +183,7 @@ In addition, it uses the following configuration from the `$cronJob`:
|
||||
| `$cronJob.failedJobsHistoryLimit` | [optional] Specify the number of failed jobs to keep |
|
||||
| `$cronJob.successfulJobsHistoryLimit` | [optional] Specify the number of completed jobs to keep |
|
||||
| `$cronJob.suspend` | [optional] Specify cronjob is suspend, default false |
|
||||
| `$cronJob.activeDeadlineSeconds` | [optional] Specify cronjob activeDeadlineSeconds |
|
||||
|
||||
Underneath the hood, it invokes [`common.pod.template`](#commonpodtemplate) template with `$pod` to populate the `PodTemplate`.
|
||||
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user