Skip to content

Commit

Permalink
chore: add resources for cron jobs (#76)
Browse files Browse the repository at this point in the history
* chore: add resources for cron

* chore: updated readme

---------

Co-authored-by: Ayushi Sharma <[email protected]>
  • Loading branch information
ayushi0014 and Ayushi Sharma authored Jan 25, 2024
1 parent 6a6f317 commit 56d5b8a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.12
version: 0.5.13
3 changes: 2 additions & 1 deletion stable/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ The following table lists the configurable parameters of the Siren chart and the
| cron.jobs[0].command | string | `""` | |
| cron.jobs[0].args | string | `""` | |
| cron.jobs[0].schedule | string | `"0 0 * * *"` | |
| cron.jobs[0].restartPolicy | string | `Never` | |
| cron.jobs[0].restartPolicy | string | `Never` |
| cron.jobs[0].resources | object | {}
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Specify the docker image path/repository. |
| image.repository | string | `nil` | |
Expand Down
2 changes: 2 additions & 0 deletions stable/app/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ spec:
- {{- toYaml $volume | nindent 14 }}
{{- end }}
{{- end }}
resources:
{{- toYaml $job.resources | nindent 14 }}
---
{{- end -}}
{{- end -}}
7 changes: 7 additions & 0 deletions stable/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ cron:
- app
args:
- startJob
# resources:
# limits:
# cpu: "100m"
# memory: "100Mi"
# requests:
# cpu: "100m"
# memory: "100Mi"

container:
command: []
Expand Down

0 comments on commit 56d5b8a

Please sign in to comment.