Skip to content

Commit

Permalink
Merge pull request #76 from cloud-pi-native/console/handle-dedicated-…
Browse files Browse the repository at this point in the history
…wal-pvc

feat: ✨ handle dedicated wal pvc for cnpg in console chart
  • Loading branch information
this-is-tobi authored Sep 27, 2024
2 parents df2141e + 65252ca commit afcec12
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
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.9.1
version: 1.10.0
appVersion: 8.13.0
keywords: []
home: https://cloud-pi-native.fr
Expand Down
5 changes: 3 additions & 2 deletions charts/dso-console/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cpn-console

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

A Helm chart to deploy Cloud Pi Native Console

Expand Down Expand Up @@ -109,10 +109,11 @@ A Helm chart to deploy Cloud Pi Native Console
| 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.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 PVC used by each cnpg instance. |
| 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. |
| cnpg.replica.port | int | `5432` | Primary cnpg cluster port used for replica mode. |
| cnpg.username | string | `"dso"` | Username of the database user. |
| cnpg.walPvcSize | string | `nil` | Size of the WAL PVC used by each cnpg instance (if value is `null` then WAL files are stored within the data PVC). |
| config.create | bool | `false` | Whether or not helm should create the console config. |
| config.name | string | `"dso-config"` | Name of the genrated config. |
| config.projectsRootDir | string | `"forge"` | Projects root directory to use in other services such as Gitlab, etc. |
Expand Down
4 changes: 4 additions & 0 deletions charts/dso-console/templates/cnpg/pg-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ spec:
primaryUpdateStrategy: {{ .Values.cnpg.primaryUpdateStrategy }}
storage:
size: {{ .Values.cnpg.pvcSize }}
{{- if .Values.cnpg.walPvcSize }}
walStorage:
size: {{ .Values.cnpg.walPvcSize }}
{{- end }}
{{- if .Values.cnpg.backup.enabled }}
backup:
barmanObjectStore:
Expand Down
4 changes: 3 additions & 1 deletion charts/dso-console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,10 @@ cnpg:
# unsupervised: automated update of the primary once all replicas have been upgraded (default)
# supervised: requires manual supervision to perform the switchover of the primary
primaryUpdateStrategy: "unsupervised"
# -- Size of the PVC used by each cnpg instance.
# -- Size of the data PVC used by each cnpg instance.
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
# -- Additional cnpg cluster annotations.
annotations: {}
# -- Additional cnpg cluster labels.
Expand Down

0 comments on commit afcec12

Please sign in to comment.