Skip to content

Commit

Permalink
cronjob configuration added
Browse files Browse the repository at this point in the history
  • Loading branch information
ironoa committed Jun 13, 2022
1 parent 187c0bf commit 1902117
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/polkadot-k8s-payouts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Polkadot K8s Payouts
name: polkadot-k8s-payouts
version: v0.1.15
version: v0.1.16
appVersion: v0.4.21
apiVersion: v2
6 changes: 3 additions & 3 deletions charts/polkadot-k8s-payouts/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ metadata:
app: {{ .Release.Name }}
spec:
schedule: {{ .Values.cronjob.schedule | quote }}
concurrencyPolicy: Forbid
concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy | quote }}
jobTemplate:
spec:
backoffLimit: 0
backoffLimit: {{ .Values.cronjob.backoffLimit }}
template:
metadata:
labels:
app: {{ .Release.Name }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
restartPolicy: Never
restartPolicy: {{ .Values.cronjob.restartPolicy | quote }}
containers:
- name: {{ .Release.Name }}
image: {{ .Values.image.repo }}:{{ .Values.image.tag | default .Chart.AppVersion }}
Expand Down
3 changes: 3 additions & 0 deletions charts/polkadot-k8s-payouts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ resources:
cronjob:
schedule: "0 12 */2 * *"
timeout: true
concurrencyPolicy: Forbid
backoffLimit: 0
restartPolicy: Never

0 comments on commit 1902117

Please sign in to comment.