diff --git a/charts/dso-console/Chart.yaml b/charts/dso-console/Chart.yaml index 05b4f1a..54e0e65 100644 --- a/charts/dso-console/Chart.yaml +++ b/charts/dso-console/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: cpn-console description: A Helm chart to deploy Cloud Pi Native Console type: application -version: 1.8.16 +version: 1.9.0 appVersion: 8.12.3 keywords: [] home: https://cloud-pi-native.fr diff --git a/charts/dso-console/README.md b/charts/dso-console/README.md index 56e8268..c258b7b 100644 --- a/charts/dso-console/README.md +++ b/charts/dso-console/README.md @@ -1,6 +1,6 @@ # cpn-console -![Version: 1.8.16](https://img.shields.io/badge/Version-1.8.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.12.3](https://img.shields.io/badge/AppVersion-8.12.3-informational?style=flat-square) +![Version: 1.9.0](https://img.shields.io/badge/Version-1.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.12.3](https://img.shields.io/badge/AppVersion-8.12.3-informational?style=flat-square) A Helm chart to deploy Cloud Pi Native Console @@ -84,6 +84,7 @@ A Helm chart to deploy Cloud Pi Native Console | client.tolerations | list | `[]` | Default tolerations for Console CPN client. | | cnpg-operator.enabled | bool | `false` | Whether or not cnpg operator should be deployed. | | cnpg.annotations | object | `{}` | Additional cnpg cluster annotations. | +| cnpg.backup.compression | string | `""` | Which compression algorithm should be used for cnpg backups (should be one of "gzip", "bzip2" or "snappy"). | | cnpg.backup.cron | string | `"0 0 */6 * * *"` | The cron rule used for cnpg backups. By default it runs every 6 hours. | | cnpg.backup.destinationPath | string | `""` | S3 destination path for cnpg backups (it should be set like `s3:///`). | | cnpg.backup.enabled | bool | `false` | Whether or not cnpg cluster deployment should be enabled. | diff --git a/charts/dso-console/templates/cnpg/pg-cluster.yaml b/charts/dso-console/templates/cnpg/pg-cluster.yaml index adaccd0..fe80ab8 100644 --- a/charts/dso-console/templates/cnpg/pg-cluster.yaml +++ b/charts/dso-console/templates/cnpg/pg-cluster.yaml @@ -93,6 +93,12 @@ spec: secretAccessKey: name: {{ .Values.cnpg.backup.s3Credentials.secretName | default (printf "%s-%s" "pg-cluster" (include "cpnConsole.fullname" .)) }} key: {{ .Values.cnpg.backup.s3Credentials.secretAccessKey.key }} + {{- if .Values.cnpg.backup.compression }} + data: + compression: {{ .Values.cnpg.backup.compression }} + wal: + compression: {{ .Values.cnpg.backup.compression }} + {{- end }} retentionPolicy: {{ .Values.cnpg.backup.retentionPolicy }} {{- end }} {{- end }} diff --git a/charts/dso-console/values.yaml b/charts/dso-console/values.yaml index 23e544b..04bca4c 100644 --- a/charts/dso-console/values.yaml +++ b/charts/dso-console/values.yaml @@ -536,6 +536,8 @@ cnpg: # -- S3 secretAccessKey value used for cnpg backups. # Only needed if `backup.s3Credentials.create` is set to `true`. value: "" + # -- Which compression algorithm should be used for cnpg backups (should be one of "gzip", "bzip2" or "snappy"). + compression: "" # -- The cron rule used for cnpg backups. By default it runs every 6 hours. cron: "0 0 */6 * * *" # -- Retention policy for cnpg backups recurrences.