Skip to content

Commit

Permalink
fix(scheduling-restart): fix successfulJobsHistoryLimit (#157)
Browse files Browse the repository at this point in the history
* feat(clickhouse-monitoring): can customize service port and portName

* feat: add chart scheduling-restart

* fix: remove automountServiceAccountToken

* fix(scheduling-restart): fix successfulJobsHistoryLimit
  • Loading branch information
duyet authored Mar 4, 2024
1 parent e9f2e62 commit 021ba57
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions scheduling-restart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ metadata:
spec:
concurrencyPolicy: {{ .Values.concurrencyPolicy }}
schedule: {{ include "scheduling-restart.schedule" . }}
{{ with .Values.successfulJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ . }}
{{ end }}
{{ with .Values.failedJobsHistoryLimit }}
failedJobsHistoryLimit: {{ . }}
{{ end }}
jobTemplate:
spec:
{{ with .Values.backoffLimit }}
Expand All @@ -18,14 +24,6 @@ spec:
activeDeadlineSeconds: {{ . }}
{{ end }}

{{ with .Values.successfulJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ . }}
{{ end }}

{{ with .Values.failedJobsHistoryLimit }}
failedJobsHistoryLimit: {{ . }}
{{ end }}

{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 021ba57

Please sign in to comment.