1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Merge pull request #444 from KohlsTechnology/issue-432-cronjob

Update Helm Chart To Allow Setting startingDeadlineSeconds
This commit is contained in:
Kubernetes Prow Robot
2020-11-24 12:10:40 -08:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ The following table lists the configurable parameters of the _descheduler_ chart
| `nameOverride` | String to partially override `descheduler.fullname` template (will prepend the release name) | `""` |
| `fullnameOverride` | String to fully override `descheduler.fullname` template | `""` |
| `schedule` | The cron schedule to run the _descheduler_ job on | `"*/2 * * * *"` |
| `startingDeadlineSeconds` | If set, configure `startingDeadlineSeconds` for the _descheduler_ job | `nil` |
| `cmdOptions` | The options to pass to the _descheduler_ command | _see values.yaml_ |
| `deschedulerPolicy.strategies` | The _descheduler_ strategies to apply | _see values.yaml_ |
| `priorityClassName` | The name of the priority class to add to pods | `system-cluster-critical` |

View File

@@ -7,6 +7,9 @@ metadata:
spec:
schedule: {{ .Values.schedule | quote }}
concurrencyPolicy: "Forbid"
{{- if .Values.startingDeadlineSeconds }}
startingDeadlineSeconds: {{ .Values.startingDeadlineSeconds }}
{{- end }}
jobTemplate:
spec:
template:

View File

@@ -20,6 +20,7 @@ nameOverride: ""
fullnameOverride: ""
schedule: "*/2 * * * *"
#startingDeadlineSeconds: 200
cmdOptions:
v: 3