Skip to content

Commit 3bd9dfc

Browse files
authored
Merge pull request #1245 from a7i/helm-cronjob-timezone
helm: support of `timeZone` for CronJob
2 parents 267efb3 + 714a347 commit 3bd9dfc

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

charts/descheduler/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ The following table lists the configurable parameters of the _descheduler_ chart
5555
| `cronJobApiVersion` | CronJob API Group Version | `"batch/v1"` |
5656
| `schedule` | The cron schedule to run the _descheduler_ job on | `"*/2 * * * *"` |
5757
| `startingDeadlineSeconds` | If set, configure `startingDeadlineSeconds` for the _descheduler_ job | `nil` |
58+
| `timeZone` | configure `timeZone` for CronJob | `nil` |
5859
| `successfulJobsHistoryLimit` | If set, configure `successfulJobsHistoryLimit` for the _descheduler_ job | `3` |
5960
| `failedJobsHistoryLimit` | If set, configure `failedJobsHistoryLimit` for the _descheduler_ job | `1` |
6061
| `ttlSecondsAfterFinished` | If set, configure `ttlSecondsAfterFinished` for the _descheduler_ job | `nil` |

charts/descheduler/templates/cronjob.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
{{- if .Values.failedJobsHistoryLimit }}
2222
failedJobsHistoryLimit: {{ .Values.failedJobsHistoryLimit }}
2323
{{- end }}
24+
{{- if .Values.timeZone }}
25+
timeZone: {{ .Values.timeZone }}
26+
{{- end }}
2427
jobTemplate:
2528
spec:
2629
{{- if .Values.ttlSecondsAfterFinished }}

charts/descheduler/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ suspend: false
4545
# successfulJobsHistoryLimit: 3
4646
# failedJobsHistoryLimit: 1
4747
# ttlSecondsAfterFinished 600
48+
# timeZone: Etc/UTC
4849

4950
# Required when running as a Deployment
5051
deschedulingInterval: 5m

0 commit comments

Comments
 (0)