From 039933bb15bc708aa2e25a970c668b4988d4c4b2 Mon Sep 17 00:00:00 2001 From: Shingo Sato Date: Sat, 11 Dec 2021 13:51:16 +0900 Subject: [PATCH] feat: add startingDeadlineSeconds optional value --- charts/renovate/README.md | 1 + charts/renovate/templates/cronjob.yaml | 3 +++ charts/renovate/values.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/charts/renovate/README.md b/charts/renovate/README.md index 37db00e0d..8020d9e33 100644 --- a/charts/renovate/README.md +++ b/charts/renovate/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the chart and the defau | cronjob.jobRestartPolicy | string | `"Never"` | | | cronjob.labels | object | `{}` | | | cronjob.schedule | string | `"0 1 * * *"` | | +| cronjob.startingDeadlineSeconds | string | `""` | | | cronjob.successfulJobsHistoryLimit | string | `""` | | | cronjob.suspend | bool | `false` | If it is set to true, all subsequent executions are suspended. This setting does not apply to already started executions. | | dind.enabled | bool | `false` | Enable dind sidecar usage? | diff --git a/charts/renovate/templates/cronjob.yaml b/charts/renovate/templates/cronjob.yaml index 456322d29..6e3c69f88 100644 --- a/charts/renovate/templates/cronjob.yaml +++ b/charts/renovate/templates/cronjob.yaml @@ -33,6 +33,9 @@ spec: {{- with .Values.cronjob.successfulJobsHistoryLimit }} successfulJobsHistoryLimit: {{ . }} {{- end }} + {{- with .Values.cronjob.startingDeadlineSeconds }} + startingDeadlineSeconds: {{ . }} + {{- end }} jobTemplate: metadata: labels: diff --git a/charts/renovate/values.yaml b/charts/renovate/values.yaml index f415f7144..54d993e1a 100644 --- a/charts/renovate/values.yaml +++ b/charts/renovate/values.yaml @@ -10,6 +10,7 @@ cronjob: successfulJobsHistoryLimit: '' jobRestartPolicy: Never jobBackoffLimit: '' + startingDeadlineSeconds: '' pod: annotations: {}