Skip to content

Commit

Permalink
feat: allow changing the default revisionHistoryLimit (prometheus-com…
Browse files Browse the repository at this point in the history
…munity#3677)

Signed-off-by: Thomas Berreis <thomas@berreis.de>
  • Loading branch information
tberreis authored and Matiasmct committed Aug 25, 2023
1 parent 5aba295 commit ffa0b39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-node-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- prometheus
- exporter
type: application
version: 4.21.0
version: 4.22.0
appVersion: 1.6.0
home: https://github.com/prometheus/node_exporter/
sources:
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-node-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
selector:
matchLabels:
{{- include "prometheus-node-exporter.selectorLabels" . | nindent 6 }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- with .Values.updateStrategy }}
updateStrategy:
{{- toYaml . | nindent 4 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Number of old history to retain to allow rollback
# Default Kubernetes value is set to 10
revisionHistoryLimit: 10

global:
# To help compatibility with other charts which use global.imagePullSecrets.
# Allow either an array of {name: pullSecret} maps (k8s-style), or an array of strings (more common helm-style).
Expand Down

0 comments on commit ffa0b39

Please sign in to comment.