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#3678)

Signed-off-by: Thomas Berreis <thomas@berreis.de>
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
  • Loading branch information
2 people authored and Matiasmct committed Aug 25, 2023
1 parent 01528e0 commit 5aba295
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-operator-admission-webhook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: Prometheus Operator Admission Webhook
name: prometheus-operator-admission-webhook
version: 0.5.0
version: 0.6.0
appVersion: 0.67.0
home: https://github.com/prometheus-operator/prometheus-operator
icon: https://github.com/prometheus-operator/prometheus-operator/raw/main/Documentation/logos/prometheus-operator-logo.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
namespace: {{ include "prometheus-operator-admission-webhook.namespace" . }}
spec:
replicas: {{ default 1 .Values.replicas }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "prometheus-operator-admission-webhook.selectorLabels" . | nindent 6 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-operator-admission-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ containerPort: 10250
## of the webhook, set at least 2.
replicas: 1

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

## restartPolicy
restartPolicy: Always

Expand Down

0 comments on commit 5aba295

Please sign in to comment.