Skip to content

Commit

Permalink
feat: allow Krawler cronjob to be suspended
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Oct 2, 2024
1 parent 163eef1 commit 4deff37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added `successfulJobsHistoryLimit` value to configure the number of successful Krawler jobs to keep (default 1).
- Added `failedJobsHistoryLimit` value to configure the number of failed Krawler jobs to keep (default 1).
- Added `suspend` value to define Krawler cronjobs suspended state (default false).

### Changed
### Deprecated
Expand Down
1 change: 1 addition & 0 deletions charts/kargo/templates/_krawler-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ metadata:
{{- end }}
spec:
schedule: "{{ .Values.cron }}"
suspend: {{ hasKey .Values "suspend" | ternary .Values.suspend false }}
# It will run 1 at a time, but not more
concurrencyPolicy: {{ .Values.concurrency | default "Forbid" }}
successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit | default 1 }} # Only keep one successful job
Expand Down

0 comments on commit 4deff37

Please sign in to comment.