From 436b0ac0764c611668cc7edddd0e67e3b0b06ab9 Mon Sep 17 00:00:00 2001 From: NPastorale Date: Mon, 22 Jun 2026 16:33:22 +0200 Subject: [PATCH] feat(deployment): adds revisionHistoryLimit as a configurable parameter Signed-off-by: NPastorale --- charts/descheduler/README.md | 1 + charts/descheduler/templates/deployment.yaml | 1 + charts/descheduler/values.yaml | 2 ++ 3 files changed, 4 insertions(+) diff --git a/charts/descheduler/README.md b/charts/descheduler/README.md index f9d6c5b20..742abaa45 100644 --- a/charts/descheduler/README.md +++ b/charts/descheduler/README.md @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the _descheduler_ chart | `ttlSecondsAfterFinished` | If set, configure `ttlSecondsAfterFinished` for the _descheduler_ job | `nil` | | `deschedulingInterval` | If using kind:Deployment, sets time between consecutive descheduler executions. | `5m` | | `replicas` | The replica count for Deployment | `1` | +| `revisionHistoryLimit | The revision history limit for Deployment | `10` | | `leaderElection` | The options for high availability when running replicated components | _see values.yaml_ | | `cmdOptions` | The options to pass to the _descheduler_ command | _see values.yaml_ | | `priorityClassName` | The name of the priority class to add to pods | `system-cluster-critical` | diff --git a/charts/descheduler/templates/deployment.yaml b/charts/descheduler/templates/deployment.yaml index 86a331062..cad62a62b 100644 --- a/charts/descheduler/templates/deployment.yaml +++ b/charts/descheduler/templates/deployment.yaml @@ -18,6 +18,7 @@ spec: {{- else }} replicas: 1 {{- end }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "descheduler.selectorLabels" . | nindent 6 }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index e53283181..357261c0d 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -68,6 +68,8 @@ deschedulingInterval: 5m # only if that node is in the same zone as at least one already-running descheduler replicas: 1 +revisionHistoryLimit: 10 + # Specifies whether Leader Election resources should be created # Required when running as a Deployment # NOTE: Leader election can't be activated if DryRun enabled