Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ add postgresWalMaxSlotKeepSize console chart values #97

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/dso-console/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cpn-console
description: A Helm chart to deploy Cloud Pi Native Console
type: application
version: 1.11.11
version: 1.12.0
appVersion: 8.20.0
keywords: []
home: https://cloud-pi-native.fr
Expand Down
3 changes: 2 additions & 1 deletion charts/dso-console/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cpn-console

![Version: 1.11.11](https://img.shields.io/badge/Version-1.11.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.20.0](https://img.shields.io/badge/AppVersion-8.20.0-informational?style=flat-square)
![Version: 1.12.0](https://img.shields.io/badge/Version-1.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.20.0](https://img.shields.io/badge/AppVersion-8.20.0-informational?style=flat-square)

A Helm chart to deploy Cloud Pi Native Console

Expand Down Expand Up @@ -108,6 +108,7 @@ A Helm chart to deploy Cloud Pi Native Console
| cnpg.mode | string | `"primary"` | Mode used to deploy the cnpg cluster, it should be `primary`, `replica` or `restore`. |
| cnpg.nameOverride | string | `""` | Provide a name in place of the default cnpg cluster name. The cnpg operator adds the cluster name to S3's `destinationPath`, so it is necessary to provide the exact match of the main cluster when using `replica` or `restore` mode. |
| cnpg.nodePort | string | `nil` | Port used for NodePort service. Needs `exposed` tu be true. |
| cnpg.postgresWalMaxSlotKeepSize | string | `""` | Maximum size of WAL files that replication slots are allowed to retain in the pg_wal directory at checkpoint time. Default retains an unlimited amount of WAL files. See: https://cloudnative-pg.io/documentation/current/replication/#capping-the-wal-size-retained-for-replication-slots (Refer to postgresql.conf for memory units). |
| cnpg.primaryUpdateStrategy | string | `"unsupervised"` | Rolling update strategy used : unsupervised: automated update of the primary once all replicas have been upgraded (default) supervised: requires manual supervision to perform the switchover of the primary |
| cnpg.pvcSize | string | `"10Gi"` | Size of the data PVC used by each cnpg instance. |
| cnpg.replica.host | string | `""` | Primary cnpg cluster host used for replica mode. |
Expand Down
3 changes: 3 additions & 0 deletions charts/dso-console/templates/cnpg/pg-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
postgresql:
parameters:
max_worker_processes: "60"
{{- if .Values.cnpg.postgresWalMaxSlotKeepSize }}
max_slot_wal_keep_size: {{ .Values.cnpg.postgresWalMaxSlotKeepSize }}
{{- end }}
pg_hba:
- {{ printf "%s %s %s %s %s" "host" .Values.cnpg.dbName .Values.cnpg.username "all" "md5" }}
- {{ printf "%s %s %s %s %s" "host" .Values.cnpg.dbName "streaming_replica" "all" "md5" }}
Expand Down
4 changes: 4 additions & 0 deletions charts/dso-console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ cnpg:
pvcSize: "10Gi"
# -- Size of the WAL PVC used by each cnpg instance (if value is `null` then WAL files are stored within the data PVC).
walPvcSize: null
# -- Maximum size of WAL files that replication slots are allowed to retain in the pg_wal directory at checkpoint time.
# Default retains an unlimited amount of WAL files.
# See: https://cloudnative-pg.io/documentation/current/replication/#capping-the-wal-size-retained-for-replication-slots (Refer to postgresql.conf for memory units).
postgresWalMaxSlotKeepSize: ""
# -- Additional cnpg cluster annotations.
annotations: {}
# -- Additional cnpg cluster labels.
Expand Down