diff --git a/Chart.yaml b/Chart.yaml index 39cf296..a4638b2 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 diff --git a/README.md b/README.md index 6e3d1f9..1cb43a2 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/templates/_cronjob.yaml b/templates/_cronjob.yaml index 6761abf..e6a1333 100644 --- a/templates/_cronjob.yaml +++ b/templates/_cronjob.yaml @@ -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 }}