Skip to content

Commit 73e302f

Browse files
feat: add configurable revisonHistoryLimit for Deployment
Signed-off-by: himanshu <[email protected]>
1 parent 24be06e commit 73e302f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

charts/prometheus-adapter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: prometheus-adapter
3-
version: 5.1.0
3+
version: 5.1.1
44
appVersion: v0.12.0
55
description: A Helm chart for k8s prometheus adapter
66
home: https://github.com/kubernetes-sigs/prometheus-adapter

charts/prometheus-adapter/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ metadata:
1616
namespace: {{ include "k8s-prometheus-adapter.namespace" . }}
1717
spec:
1818
replicas: {{ .Values.replicas }}
19+
{{- if .Values.revisionHistoryLimit }}
20+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
21+
{{- end }}
1922
strategy: {{ toYaml .Values.strategy | nindent 4 }}
2023
selector:
2124
matchLabels:

charts/prometheus-adapter/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,6 @@ extraManifests: []
305305
# name: prometheus-extra
306306
# data:
307307
# extra-data: "value"
308+
309+
# Optional: set revisionHistoryLimit for the Deployment
310+
revisionHistoryLimit: null

0 commit comments

Comments
 (0)