Skip to content

Commit 795313f

Browse files
authored
feat: support lz4, xz, and zstandard compressions (#201)
Closes #200 Signed-off-by: Marco Nenciarini <[email protected]>
1 parent 47e626e commit 795313f

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
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: 1 addition & 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

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=

manifest.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,14 @@ spec:
136136
description: |-
137137
Compress a backup file (a tar file per tablespace) while streaming it
138138
to the object store. Available options are empty string (no
139-
compression, default), `gzip`, `bzip2` or `snappy`.
139+
compression, default), `gzip`, `bzip2`, `lz4`, `snappy`, `xz`, and `zstd`.
140140
enum:
141-
- gzip
142141
- bzip2
142+
- gzip
143+
- lz4
143144
- snappy
145+
- xz
146+
- zstd
144147
type: string
145148
encryption:
146149
description: |-
@@ -327,11 +330,15 @@ spec:
327330
compression:
328331
description: |-
329332
Compress a WAL file before sending it to the object store. Available
330-
options are empty string (no compression, default), `gzip`, `bzip2` or `snappy`.
333+
options are empty string (no compression, default), `gzip`, `bzip2`,
334+
`lz4`, `snappy`, `xz`, and `zstd`.
331335
enum:
332-
- gzip
333336
- bzip2
337+
- gzip
338+
- lz4
334339
- snappy
340+
- xz
341+
- zstd
335342
type: string
336343
encryption:
337344
description: |-

0 commit comments

Comments
 (0)