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
|
# 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.
|
# 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.failedJobsHistoryLimit` | [optional] Specify the number of failed jobs to keep |
|
||||||
| `$cronJob.successfulJobsHistoryLimit` | [optional] Specify the number of completed jobs to keep |
|
| `$cronJob.successfulJobsHistoryLimit` | [optional] Specify the number of completed jobs to keep |
|
||||||
| `$cronJob.suspend` | [optional] Specify cronjob is suspend, default false |
|
| `$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`.
|
Underneath the hood, it invokes [`common.pod.template`](#commonpodtemplate) template with `$pod` to populate the `PodTemplate`.
|
||||||
|
|
||||||
|
@ -37,6 +37,9 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "common.selectorLabels" $top | nindent 8 }}
|
{{- include "common.selectorLabels" $top | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- with $cronJob.activeDeadlineSeconds }}
|
||||||
|
activeDeadlineSeconds: {{ . }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
{{- include "common.pod.template" (list $top $pod $serviceAccount "common.cronJob.pod") | nindent 8 }}
|
{{- include "common.pod.template" (list $top $pod $serviceAccount "common.cronJob.pod") | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Reference in New Issue
Block a user