Skip to content

Commit

Permalink
feat: allow changing the default revisionHistoryLimit
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Krawczyk <thomas.krawczyk@diva-e.com>
  • Loading branch information
barney71 committed Aug 3, 2023
1 parent 509e006 commit 76b9c5d
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
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
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
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 76b9c5d

Please sign in to comment.