Skip to content

Commit

Permalink
feat(app): add serviceAccountName to cronjob (#97)
Browse files Browse the repository at this point in the history
* feat(app): add serviceAccountName to cronjob

* fix(app): serviceAccountName location
  • Loading branch information
StewartJingga authored Jun 19, 2024
1 parent 46a88a6 commit 6c662d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
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.6.6
version: 0.6.7
1 change: 1 addition & 0 deletions stable/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Siren chart and the
| container.readinessProbe.httpGet.port | string | `"tcp"` | |
| cron.enabled | bool | `false` | |
| cron.jobs[0].name | string | `""` | |
| cron.jobs[0].serviceAccountName | string | `""` | |
| cron.jobs[0].command | string | `""` | |
| cron.jobs[0].args | string | `""` | |
| cron.jobs[0].schedule | string | `"0 0 * * *"` | |
Expand Down
3 changes: 3 additions & 0 deletions stable/app/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
spec:
{{- if $job.serviceAccountName }}
serviceAccountName: "{{ $job.serviceAccountName }}"
{{- end }}
{{- if $job.initContainers }}
initContainers:
{{- range $initContainer := $job.initContainers }}
Expand Down
1 change: 1 addition & 0 deletions stable/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ cron:
- app
args:
- startJob
serviceAccountName: ""
# resources:
# limits:
# cpu: "100m"
Expand Down

0 comments on commit 6c662d1

Please sign in to comment.