diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index 4ce2b40759..e7751434d4 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -7,6 +7,9 @@ metadata: {{- include "descheduler.labels" . | nindent 4 }} spec: schedule: {{ .Values.schedule | quote }} + {{- if .Values.suspend }} + suspend: {{ .Values.suspend }} + {{- end }} concurrencyPolicy: "Forbid" {{- if .Values.startingDeadlineSeconds }} startingDeadlineSeconds: {{ .Values.startingDeadlineSeconds }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index d921248f37..b6b2a9bc29 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -26,6 +26,7 @@ fullnameOverride: "" cronJobApiVersion: "batch/v1" # Use "batch/v1beta1" for k8s version < 1.21.0. TODO(@7i) remove with 1.23 release schedule: "*/2 * * * *" +suspend: false #startingDeadlineSeconds: 200 #successfulJobsHistoryLimit: 1 #failedJobsHistoryLimit: 1