Skip to content

Commit

Permalink
Merge pull request #1573 from icloudnote/charts
Browse files Browse the repository at this point in the history
Fixed the issue when successfulJobsHistoryLimit and failedJobsHistoryLimit variables are 0.
  • Loading branch information
k8s-ci-robot authored Dec 14, 2024
2 parents 46fa370 + bc63236 commit 5c3a3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/descheduler/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ spec:
{{- if .Values.startingDeadlineSeconds }}
startingDeadlineSeconds: {{ .Values.startingDeadlineSeconds }}
{{- end }}
{{- if .Values.successfulJobsHistoryLimit }}
{{- if ne .Values.successfulJobsHistoryLimit nil }}
successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit }}
{{- end }}
{{- if .Values.failedJobsHistoryLimit }}
{{- if ne .Values.failedJobsHistoryLimit nil }}
failedJobsHistoryLimit: {{ .Values.failedJobsHistoryLimit }}
{{- end }}
{{- if .Values.timeZone }}
Expand Down

0 comments on commit 5c3a3bd

Please sign in to comment.