Skip to content

Commit

Permalink
feat(restoreIndices): configurable crontab schedule (acryldata#457)
Browse files Browse the repository at this point in the history
* feat(restoreIndices): configurable crontab schedule

* and set default schedule to once per week on Sunday

* chore: bump chart version
  • Loading branch information
lix-mms authored May 7, 2024
1 parent 89c92c8 commit 2cc4fae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for LinkedIn DataHub
type: application
# 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: 0.4.9
version: 0.4.10
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.13.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
labels:
{{- include "datahub.labels" . | nindent 4 }}
spec:
schedule: "* * * * *"
schedule: {{ .Values.datahubUpgrade.restoreIndices.schedule | default "0 0 * * 0" }}
suspend: true
concurrencyPolicy: {{ .Values.datahubUpgrade.restoreIndices.concurrencyPolicy | default "Allow" }}
jobTemplate:
Expand Down
2 changes: 2 additions & 0 deletions charts/datahub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ datahubUpgrade:
requests:
cpu: 300m
memory: 256Mi
# Schedule of CronJob when enabled
schedule: "0 0 * * 0"
# Add the concurrency Policy flexibility via values
concurrencyPolicy: Allow
# Add extra sidecar containers to job pod
Expand Down

0 comments on commit 2cc4fae

Please sign in to comment.