Skip to content

Commit 4cc6d92

Browse files
feat: add default revisionHistoryLimit (10) and remove conditional check
Signed-off-by: himanshu <[email protected]>
1 parent 50dacc1 commit 4cc6d92

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
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.1
3+
version: 5.2.0
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ metadata:
1616
namespace: {{ include "k8s-prometheus-adapter.namespace" . }}
1717
spec:
1818
replicas: {{ .Values.replicas }}
19-
{{- if .Values.revisionHistoryLimit }}
2019
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
21-
{{- end }}
2220
strategy: {{ toYaml .Values.strategy | nindent 4 }}
2321
selector:
2422
matchLabels:

charts/prometheus-adapter/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,4 @@ extraManifests: []
307307
# extra-data: "value"
308308

309309
# Optional: set revisionHistoryLimit for the Deployment
310-
revisionHistoryLimit: null
310+
revisionHistoryLimit: 10

0 commit comments

Comments
 (0)