From 663fbb5618a107b8e0ff42c1e5059c2ddcef2da4 Mon Sep 17 00:00:00 2001 From: roib20 <66280613+roib20@users.noreply.github.com> Date: Thu, 17 Sep 2026 00:47:12 +0300 Subject: [PATCH 1/2] refactor: alphabetize compression algorithms Alphabetize compression algorithms in the comments for `DataBackupConfiguration` and `WalBackupConfiguration`. This keeps the order consistent with the Enums below the comments. Signed-off-by: roib20 <66280613+roib20@users.noreply.github.com> --- pkg/api/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/config.go b/pkg/api/config.go index 0e731081..6107312f 100644 --- a/pkg/api/config.go +++ b/pkg/api/config.go @@ -221,7 +221,7 @@ type BarmanObjectStoreConfiguration struct { // WAL stream type WalBackupConfiguration struct { // Compress a WAL file before sending it to the object store. Available - // options are empty string (no compression, default), `gzip`, `bzip2`, + // options are empty string (no compression, default), `bzip2`, `gzip`, // `lz4`, `snappy`, `xz`, and `zstd`. // +kubebuilder:validation:Enum=bzip2;gzip;lz4;snappy;xz;zstd // +optional @@ -282,7 +282,7 @@ type WalBackupConfiguration struct { type DataBackupConfiguration struct { // Compress a backup file (a tar file per tablespace) while streaming it // to the object store. Available options are empty string (no - // compression, default), `gzip`, `bzip2`, `lz4`, and `snappy`. + // compression, default), `bzip2`, `gzip`, `lz4`, and `snappy`. // +kubebuilder:validation:Enum=bzip2;gzip;lz4;snappy // +optional Compression CompressionType `json:"compression,omitempty"` From 2ee3d849c7e22c38745e8fc3c10ae98d764d86b3 Mon Sep 17 00:00:00 2001 From: roib20 <66280613+roib20@users.noreply.github.com> Date: Thu, 17 Sep 2026 00:49:16 +0300 Subject: [PATCH 2/2] fix: allow zstd compression for base backups Barman 3.20.0 added `--zstd` to barman-cloud-backup (EnterpriseDB/barman@0aa2070). Put `zstd` back in the `DataBackupConfiguration` Enum; it was removed in #89 when no base-backup tool accepted it. Closes #305 Signed-off-by: roib20 <66280613+roib20@users.noreply.github.com> --- pkg/api/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/config.go b/pkg/api/config.go index 6107312f..37d76913 100644 --- a/pkg/api/config.go +++ b/pkg/api/config.go @@ -282,8 +282,8 @@ type WalBackupConfiguration struct { type DataBackupConfiguration struct { // Compress a backup file (a tar file per tablespace) while streaming it // to the object store. Available options are empty string (no - // compression, default), `bzip2`, `gzip`, `lz4`, and `snappy`. - // +kubebuilder:validation:Enum=bzip2;gzip;lz4;snappy + // compression, default), `bzip2`, `gzip`, `lz4`, `snappy`, and `zstd`. + // +kubebuilder:validation:Enum=bzip2;gzip;lz4;snappy;xz;zstd // +optional Compression CompressionType `json:"compression,omitempty"`