Skip to content

Commit 548a599

Browse files
committed
feat: support lz4, xz, and zstandard compressions
Closes #200 Signed-off-by: Marco Nenciarini <[email protected]>
1 parent fecd1e9 commit 548a599

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

config/crd/bases/barmancloud.cnpg.io_objectstores.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,14 @@ spec:
137137
description: |-
138138
Compress a backup file (a tar file per tablespace) while streaming it
139139
to the object store. Available options are empty string (no
140-
compression, default), `gzip`, `bzip2` or `snappy`.
140+
compression, default), `gzip`, `bzip2`, `lz4`, `snappy`, `xz`, and `zstd`.
141141
enum:
142-
- gzip
143142
- bzip2
143+
- gzip
144+
- lz4
144145
- snappy
146+
- xz
147+
- zstd
145148
type: string
146149
encryption:
147150
description: |-
@@ -328,11 +331,15 @@ spec:
328331
compression:
329332
description: |-
330333
Compress a WAL file before sending it to the object store. Available
331-
options are empty string (no compression, default), `gzip`, `bzip2` or `snappy`.
334+
options are empty string (no compression, default), `gzip`, `bzip2`,
335+
`lz4`, `snappy`, `xz`, and `zstd`.
332336
enum:
333-
- gzip
334337
- bzip2
338+
- gzip
339+
- lz4
335340
- snappy
341+
- xz
342+
- zstd
336343
type: string
337344
encryption:
338345
description: |-

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.24.1
77
require (
88
github.com/cert-manager/cert-manager v1.17.1
99
github.com/cloudnative-pg/api v1.25.1
10-
github.com/cloudnative-pg/barman-cloud v0.2.0
10+
github.com/cloudnative-pg/barman-cloud v0.3.0
1111
github.com/cloudnative-pg/cloudnative-pg v1.25.1
1212
github.com/cloudnative-pg/cnpg-i v0.1.0
1313
github.com/cloudnative-pg/cnpg-i-machinery v0.2.0
@@ -136,3 +136,5 @@ require (
136136
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
137137
sigs.k8s.io/yaml v1.4.0 // indirect
138138
)
139+
140+
replace github.com/cloudnative-pg/barman-cloud v0.2.0 => github.com/saolof/barman-cloud v0.0.0-20250316143924-8a5d8ef7cfc3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UF
2020
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
2121
github.com/cloudnative-pg/api v1.25.1 h1:uNjKiB0MIspUeH9l651SnFDcuflr1crB3t6LjxUCafQ=
2222
github.com/cloudnative-pg/api v1.25.1/go.mod h1:fwF5g4XkuNZqYXIeRR3AJvUfWlqWig+r2DXc5bEmw6U=
23-
github.com/cloudnative-pg/barman-cloud v0.2.0 h1:KMwJPKjytDqljNNOounBGojsGTXiowztH0WQrVB8/DQ=
24-
github.com/cloudnative-pg/barman-cloud v0.2.0/go.mod h1:kNIUU+fpnYjkr25YwHnteROLhbs6rqpjDiB8XW1+sug=
23+
github.com/cloudnative-pg/barman-cloud v0.3.0 h1:tCtIF7nsHDH5X7nAXXd7VqNKKNGHrycXAyyKKKpdGS4=
24+
github.com/cloudnative-pg/barman-cloud v0.3.0/go.mod h1:8m6W117343zT28ctcskUYEu/dy+MX3hUUW4DynH8MLI=
2525
github.com/cloudnative-pg/cloudnative-pg v1.25.1 h1:Yc6T7ikQ1AiWXBQht+6C3DoihrIpUN2OkM1dIwqadTo=
2626
github.com/cloudnative-pg/cloudnative-pg v1.25.1/go.mod h1:96b9bRFLSr3uFWHjhytPdcvKIKwy9H6AG7cH0O6jefs=
2727
github.com/cloudnative-pg/cnpg-i v0.1.0 h1:QH2xTsrODMhEEc6B25GbOYe7ZIttDmSkYvXotfU5dfs=

0 commit comments

Comments
 (0)