Skip to content

Commit 3282b0c

Browse files
authored
feat: add annotations for cron (#128)
* feat: add annotations for cron * chore: version bump
1 parent 59db38f commit 3282b0c

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

stable/app/Chart.yaml

Lines changed: 1 addition & 1 deletion
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.8.0
18+
version: 0.9.0

stable/app/templates/cron.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ spec:
1818
backoffLimit: 4
1919
template:
2020
metadata:
21+
annotations:
22+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
23+
{{- with $.Values.cron.annotations }}
24+
{{- toYaml . | nindent 12 }}
25+
{{- end }}
2126
labels:
22-
{{- $appSelectorLabels | nindent 12 }}
27+
{{- $appSelectorLabels | nindent 12 }}
2328
spec:
2429
containers:
2530
- name: {{ $job.name }}

stable/app/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ affinity: {}
9494

9595
cron:
9696
enabled: false
97+
annotations: {}
9798
# -- We would recommend to use a small unique job name since it would be used to identify the cronjob in k8s
9899
# -- and job name would be truncated to 29 characters in the cron job template.
99100
jobs:

0 commit comments

Comments
 (0)