Skip to content

Commit

Permalink
feat: allow changing the default revisionHistoryLimit (kubereboot#47)
Browse files Browse the repository at this point in the history
* feat: allow changing the default revisionHistoryLimit

Signed-off-by: Thomas Berreis <[email protected]>

* refactor: use default revision history limit instead of conditional

Signed-off-by: Thomas Berreis <[email protected]>

---------

Signed-off-by: Thomas Berreis <[email protected]>
  • Loading branch information
tberreis authored Aug 3, 2023
1 parent cd9e53c commit eeda986
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kured/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions charts/kured/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) | `{}` |
Expand Down
1 change: 1 addition & 0 deletions charts/kured/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
{{- end }}
{{- end }}
spec:
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
updateStrategy:
type: {{ .Values.updateStrategy }}
{{- if eq .Values.updateStrategy "RollingUpdate"}}
Expand Down
2 changes: 2 additions & 0 deletions charts/kured/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ image:
pullPolicy: IfNotPresent
pullSecrets: []

revisionHistoryLimit: 10

updateStrategy: RollingUpdate
# requires RollingUpdate updateStrategy
maxUnavailable: 1
Expand Down

0 comments on commit eeda986

Please sign in to comment.