Skip to content

Commit c3a6bea

Browse files
committed
feat(deployment): adds revisionHistoryLimit as a configurable parameter
Signed-off-by: NPastorale <npastorale@gmail.com>
1 parent f06b7fd commit c3a6bea

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

charts/cloudnative-pg/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ metadata:
3030
{{- end }}
3131
spec:
3232
replicas: {{ .Values.replicaCount }}
33+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
3334
selector:
3435
matchLabels:
3536
{{- include "cloudnative-pg.selectorLabels" . | nindent 6 }}

charts/cloudnative-pg/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
replicaCount: 1
2424

25+
revisionHistoryLimit: 10
26+
2527
image:
2628
repository: ghcr.io/cloudnative-pg/cloudnative-pg
2729
pullPolicy: IfNotPresent
@@ -180,7 +182,6 @@ tolerations: []
180182
affinity: {}
181183

182184
monitoring:
183-
184185
# -- Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs.
185186
podMonitorEnabled: false
186187
# -- Metrics relabel configurations to apply to samples before ingestion.

0 commit comments

Comments
 (0)