diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index 097047345..90d535fe4 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -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 }}