Skip to content

Commit ef9c8c0

Browse files
committed
Set limits for config updater cron job
1 parent ed1b9c3 commit ef9c8c0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

helm-charts/nts-pool/templates/cron-config-updater.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ metadata:
2626
{{- include "nts-pool.labels" . | nindent 4 }}
2727
spec:
2828
schedule: "{{ .Values.configUpdater.schedule }}"
29+
successfulJobsHistoryLimit: {{ .Values.configUpdater.successfulJobsHistoryLimit }}
30+
failedJobsHistoryLimit: {{ .Values.configUpdater.failedJobsHistoryLimit }}
31+
concurrencyPolicy: "{{ .Values.configUpdater.concurrencyPolicy }}"
2932
jobTemplate:
3033
spec:
3134
template:

helm-charts/nts-pool/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ geolocation:
139139
configUpdater:
140140
# When to run the config updater jobs
141141
schedule: "* * * * *"
142+
# How many successful job runs to keep in the history
143+
successfulJobsHistoryLimit: 3
144+
# How many failed job runs to keep in the history
145+
failedJobsHistoryLimit: 5
146+
# Concurrency policy for the cron job (Allow, Forbid, Replace)
147+
concurrencyPolicy: "Forbid"
142148
# Override global image settings for the config updater
143149
image:
144150
pullSecrets: null

0 commit comments

Comments
 (0)