From 5bb871299efdc7651c5804e77e591ab93fbc5ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= <38255502+matmut7@users.noreply.github.com> Date: Thu, 3 Aug 2023 15:35:16 +0200 Subject: [PATCH] fix: enable wal compression by default (#394) --- packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml | 4 ++++ .../tests/__snapshots__/override-env-default.dev.yaml | 2 ++ packages/kontinuous/tests/__snapshots__/pg.prod.yaml | 2 ++ plugins/fabrique/charts/pg/values.yaml | 2 ++ 4 files changed, 10 insertions(+) diff --git a/packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml b/packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml index 6430eed5d3..4d8e82f9d8 100644 --- a/packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml +++ b/packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml @@ -746,6 +746,8 @@ spec: secretAccessKey: key: bucket_secret_key name: fabrique-prod-backups-access-key + wal: + compression: gzip minSyncReplicas: 0 maxSyncReplicas: 0 postgresql: {} @@ -824,6 +826,8 @@ spec: secretAccessKey: key: bucket_secret_key name: fabrique-prod-backups-access-key + wal: + compression: gzip minSyncReplicas: 0 maxSyncReplicas: 0 postgresql: {} diff --git a/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml b/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml index 01ad62bef6..ddc60a19f5 100644 --- a/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml +++ b/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml @@ -353,6 +353,8 @@ spec: secretAccessKey: key: bucket_secret_key name: fabrique-dev-backups-access-key + wal: + compression: gzip minSyncReplicas: 0 maxSyncReplicas: 0 postgresql: {} diff --git a/packages/kontinuous/tests/__snapshots__/pg.prod.yaml b/packages/kontinuous/tests/__snapshots__/pg.prod.yaml index 3d89b0305b..cc2e55a268 100644 --- a/packages/kontinuous/tests/__snapshots__/pg.prod.yaml +++ b/packages/kontinuous/tests/__snapshots__/pg.prod.yaml @@ -517,6 +517,8 @@ spec: secretAccessKey: key: bucket_secret_key name: fabrique-prod-backups-access-key + wal: + compression: gzip minSyncReplicas: 0 maxSyncReplicas: 0 postgresql: {} diff --git a/plugins/fabrique/charts/pg/values.yaml b/plugins/fabrique/charts/pg/values.yaml index 92ac7181dc..ad5200a72b 100644 --- a/plugins/fabrique/charts/pg/values.yaml +++ b/plugins/fabrique/charts/pg/values.yaml @@ -50,6 +50,8 @@ cnpg-cluster: barmanObjectStore: ~tpl~destinationPath: "s3://{{ .Values.global.projectName }}-{{ .Values.global.isProd | ternary `prod` `dev` }}-backups/{{ .Values.global.namespace }}/{{ index .Values.kontinuous.chartContext 2 }}{{ (ne .Values.Parent.backup.name ``) | ternary (print `-` .Values.Parent.backup.name) `` }}" ~tpl~endpointURL: "{{ .Values.global.pgBackupEndpointURL }}" + wal: + compression: gzip s3Credentials: accessKeyId: ~tpl~name: "{{ .Values.global.projectName }}-{{ .Values.global.isProd | ternary `prod` `dev` }}-backups-access-key"