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 Berreis <[email protected]>
  • Loading branch information
tberreis committed Aug 6, 2023
1 parent 436e336 commit cd27b78
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: v2.46.0
version: 23.2.0
version: 23.3.0
kubeVersion: ">=1.16.0-0"
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
matchLabels:
{{- include "prometheus.server.matchLabels" . | nindent 6 }}
replicas: {{ .Values.server.replicaCount }}
revisionHistoryLimit: {{ .Values.server.revisionHistoryLimit }}
{{- if .Values.server.strategy }}
strategy:
{{ toYaml .Values.server.strategy | trim | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
matchLabels:
{{- include "prometheus.server.matchLabels" . | nindent 6 }}
replicas: {{ .Values.server.replicaCount }}
revisionHistoryLimit: {{ .Values.server.revisionHistoryLimit }}
podManagementPolicy: {{ .Values.server.statefulSet.podManagementPolicy }}
template:
metadata:
Expand Down
5 changes: 5 additions & 0 deletions charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,11 @@ server:
##
replicaCount: 1

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

## Annotations to be added to deployment
##
deploymentAnnotations: {}
Expand Down

0 comments on commit cd27b78

Please sign in to comment.