Skip to content

Commit

Permalink
feat: allow changing the default revisionHistoryLimit (#3664)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Krawczyk <[email protected]>
  • Loading branch information
barney71 authored Aug 4, 2023
1 parent d90bbad commit aba4760
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 48.2.3
version: 48.3.0
appVersion: v0.66.0
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ metadata:
{{- end }}
spec:
replicas: 1
revisionHistoryLimit: {{ .Values.prometheusOperator.revisionHistoryLimit }}
selector:
matchLabels:
app: {{ template "kube-prometheus-stack.name" . }}-operator
Expand Down
4 changes: 4 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,10 @@ prometheus-node-exporter:
prometheusOperator:
enabled: true

## Number of old replicasets to retain ##
## The default value is 10, 0 will garbage-collect old replicasets ##
revisionHistoryLimit: 10

## Prometheus-Operator v0.39.0 and later support TLS natively.
##
tls:
Expand Down

0 comments on commit aba4760

Please sign in to comment.