Skip to content

Commit f57e60d

Browse files
toggetitLeoColomb
andauthored
Add timezone parameter for housekeeping cronjob (#697)
Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>
1 parent 15280f5 commit f57e60d

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

charts/netbox/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: netbox
3-
version: 6.0.17
3+
version: 6.0.18
44
# renovate: image=ghcr.io/netbox-community/netbox
55
appVersion: "v4.3.1"
66
type: application

charts/netbox/templates/cronjob.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ spec:
1515
schedule: {{ .Values.housekeeping.schedule | quote }}
1616
successfulJobsHistoryLimit: {{ .Values.housekeeping.successfulJobsHistoryLimit }}
1717
suspend: {{ .Values.housekeeping.suspend }}
18+
{{- if .Values.housekeeping.timezone }}
19+
timeZone: {{ .Values.housekeeping.timezone }}
20+
{{- end }}
1821
jobTemplate:
1922
metadata:
2023
labels:

charts/netbox/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@
618618
"suspend": {
619619
"type": "boolean"
620620
},
621+
"timezone": {
622+
"type": "string"
623+
},
621624
"tolerations": {
622625
"type": "array"
623626
}

charts/netbox/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,10 @@ housekeeping:
13071307
## See https://en.wikipedia.org/wiki/Cron
13081308
##
13091309
schedule: "0 0 * * *"
1310+
## @param housekeeping.timezone Set time zone for cron job
1311+
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones
1312+
##
1313+
timezone: ""
13101314
## @param housekeeping.historyLimit Number of successful finished jobs to retain
13111315
##
13121316
successfulJobsHistoryLimit: 5

0 commit comments

Comments
 (0)