From eeda986ab50b9828d777e9457e7168ba4f730d65 Mon Sep 17 00:00:00 2001 From: tberreis <88875030+tberreis@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:39:45 +0200 Subject: [PATCH] feat: allow changing the default revisionHistoryLimit (#47) * feat: allow changing the default revisionHistoryLimit Signed-off-by: Thomas Berreis * refactor: use default revision history limit instead of conditional Signed-off-by: Thomas Berreis --------- Signed-off-by: Thomas Berreis --- charts/kured/Chart.yaml | 2 +- charts/kured/README.md | 1 + charts/kured/templates/daemonset.yaml | 1 + charts/kured/values.yaml | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/kured/Chart.yaml b/charts/kured/Chart.yaml index 9415a90..a747993 100644 --- a/charts/kured/Chart.yaml +++ b/charts/kured/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.13.2" description: A Helm chart for kured name: kured -version: 5.0.0 +version: 5.1.0 home: https://github.com/kubereboot/kured maintainers: - name: ckotzbauer diff --git a/charts/kured/README.md b/charts/kured/README.md index 4e52a1f..23b7e26 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -74,6 +74,7 @@ The following changes have been made compared to the stable chart: | `image.tag` | Image tag | `1.13.2` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullSecrets` | Image pull secrets | `[]` | +| `revisionHistoryLimit` | Number of old history to retain to allow rollback | `10` | | `updateStrategy` | Daemonset update strategy | `RollingUpdate` | | `maxUnavailable` | The max pods unavailable during a rolling update | `1` | | `podAnnotations` | Annotations to apply to pods (eg to add Prometheus annotations) | `{}` | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index fe0a58b..3ba5929 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -12,6 +12,7 @@ metadata: {{- end }} {{- end }} spec: + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} updateStrategy: type: {{ .Values.updateStrategy }} {{- if eq .Values.updateStrategy "RollingUpdate"}} diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index 3a98f4c..c067996 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -4,6 +4,8 @@ image: pullPolicy: IfNotPresent pullSecrets: [] +revisionHistoryLimit: 10 + updateStrategy: RollingUpdate # requires RollingUpdate updateStrategy maxUnavailable: 1