Skip to content

Commit 60cc9e4

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

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

charts/cloudnative-pg/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Kubernetes: `>=1.29.0-0`
158158
| rbac.create | bool | `true` | Specifies whether ClusterRole and ClusterRoleBinding should be created. |
159159
| replicaCount | int | `1` | |
160160
| resources | object | `{}` | |
161+
| revisionHistoryLimit | int | `10` | |
161162
| service.ipFamilies | list | `[]` | Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. |
162163
| service.ipFamilyPolicy | string | `""` | Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) |
163164
| service.name | string | `"cnpg-webhook-service"` | The name of the Webhook Service. |

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.schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@
321321
"default": 1,
322322
"type": "integer"
323323
},
324+
"revisionHistoryLimit": {
325+
"default": 10,
326+
"type": "integer"
327+
},
324328
"resources": {
325329
"required": [],
326330
"type": "object"
@@ -467,4 +471,4 @@
467471
},
468472
"required": [],
469473
"type": "object"
470-
}
474+
}

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)