Skip to content

Commit dc859ec

Browse files
feat: add support for service account in CronJobs inside app chart (#124)
* add support for service account in cronjobs * add support for service account in cronjobs
1 parent ea40c4c commit dc859ec

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

stable/app/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.7.0
18+
version: 0.7.1

stable/app/templates/cron.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ spec:
3535
- secretRef:
3636
name: {{ $fullName }}
3737
restartPolicy: {{ $job.restartPolicy }}
38+
{{- if $.Values.serviceAccount.enabled }}
39+
serviceAccountName: {{ include "app.fullname" $ }}
40+
{{- end }}
3841
---
3942
{{- end -}}
40-
{{- end -}}
43+
{{- end -}}

0 commit comments

Comments
 (0)