Commit Graph

231 Commits

Author SHA1 Message Date
Niccolò Fei
78fe21b24d
fix: use a fixed golangci-lint version (#230)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
2025-03-24 16:43:21 +01:00
Jonathan Battiato
5788c1f727
fix: controller and sidecar containers run as non-root (#225)
Closes #177

Signed-off-by: Jonathan Battiato <jonathan.battiato@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-03-23 17:00:52 +01:00
Leonardo Cecchi
a7ef56b6e7
feat: implement evaluate lifecycle hook (#222)
This patch allows the plugin trigger a rolling deployment on existing
clusters, enabling seamless migration between the in-tree barman cloud
support and the plugin.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-03-21 14:49:55 +01:00
renovate[bot]
bcfe1fd8dd
chore(deps): refresh pip-compile outputs (#215)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 11:25:58 +01:00
renovate[bot]
4b51960ae2
chore(deps): update dependency barman to v3.13.1 (#217)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| pypi       | barman  | 3.13.0 | 3.13.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 10:43:37 +01:00
renovate[bot]
a5b8649bd0
fix(deps): update all non-major go dependencies (#213)
| datasource | package                   | from    | to      |
| ---------- | ------------------------- | ------- | ------- |
| go         | github.com/onsi/ginkgo/v2 | v2.23.0 | v2.23.1 |
| go         | github.com/spf13/viper    | v1.19.0 | v1.20.0 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 18:48:51 +01:00
renovate[bot]
6073822d01
chore(deps): update dependency setuptools to v77 (#214)
| datasource | package    | from   | to     |
| ---------- | ---------- | ------ | ------ |
| pypi       | setuptools | 75.9.1 | 77.0.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 18:48:20 +01:00
renovate[bot]
3226d4acfc
chore(deps): update kindest/node docker tag to v1.32.3 (#212)
| datasource | package      | from    | to      |
| ---------- | ------------ | ------- | ------- |
| docker     | kindest/node | v1.32.2 | v1.32.3 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 18:47:55 +01:00
renovate[bot]
1cff51e97b
chore(deps): update docker digest to 2259321 (#211)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 18:47:41 +01:00
renovate[bot]
0c8b725a13
chore(deps): update dependency controller-runtime to v0.20.3 (#193)
| datasource | package                                               | from    | to      |
| ---------- | ----------------------------------------------------- | ------- | ------- |
| git-refs   | https://github.com/kubernetes-sigs/controller-runtime | v0.20.2 | v0.20.3 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 15:10:06 +01:00
renovate[bot]
90692be3c2
chore(deps): update dependency setuptools to v75.9.1 (#195)
| datasource | package    | from   | to     |
| ---------- | ---------- | ------ | ------ |
| pypi       | setuptools | 75.8.2 | 75.9.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 15:06:38 +01:00
renovate[bot]
2e7b55a02d
chore(deps): update all cloudnative-pg daggerverse dependencies to 00cead9 (#207)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 15:06:20 +01:00
Marco Nenciarini
56d8cceb3b
feat: upgrade Barman to 3.13.0 (#209)
Upgrade Barman to 3.13.0 and adjust the argument order in
`barman-cloud-restore` to work around the regression described in
cloudnative-pg/cloudnative-pg#6932.

Closes #208

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-20 14:35:26 +01:00
Marco Nenciarini
795313f4aa
feat: support lz4, xz, and zstandard compressions (#201)
Closes #200

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-19 10:58:55 +01:00
renovate[bot]
47e626e381
chore(deps): update all cloudnative-pg daggerverse dependencies to 0caef5c (#204)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-19 09:18:48 +01:00
Leonardo Cecchi
fecd1e9513
feat: retention policy (#191)
This commit makes the Barman cloud plugin support the enforcement of
retention policy as provided by the barman-cloud tool suite.

The first recoverability point and the last successful backup are
shown in the status of the ObjectStore resource for each involved
server name.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-18 17:35:22 +01:00
renovate[bot]
f52007914f
chore(deps): update all sagikazarmark daggerverse dependencies to 21f771e (#203)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 12:20:08 +01:00
renovate[bot]
b8f8f97240
chore(deps): update dependency dagger/dagger to v0.16.3 (#199)
| datasource  | package       | from    | to      |
| ----------- | ------------- | ------- | ------- |
| github-tags | dagger/dagger | v0.16.2 | v0.16.3 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 11:10:26 +01:00
Leonardo Cecchi
13e3fab268
feat: lenient decoding of CNPG resources (#192)
This patch enables the barman-cloud plugin to function with an operator
that is structurally identical to CNPG but works with a different API group.

It achieves this through lenient decoding of the provided CNPG resources
and injecting the detected GVK into the sidecar, enabling it to correctly
encode and decode the Kubernetes resources.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-14 12:23:23 +01:00
Leonardo Cecchi
fcbc472092
feat: support custom CA certificates (#198)
This patch enables the use of custom CA certificates when connecting
to the object store in the barman-cloud plugin. The certificates are
injected into the sidecar via a projected volume and used by the
barman-cloud tool suite.

If the barman object name or the key name changes, users must trigger
a Pod rollout to apply the new values.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-13 12:05:13 +01:00
Peggie
0872cf2013
chore(main): release 0.2.0 (#126)
Signed-off-by: Peggie <info@cloudnative-pg.io>
2025-03-05 15:31:15 +01:00
Francesco Canovai
0341b688c4
test(e2e): use upstream fake-gcs-server (#189)
Since https://github.com/fsouza/fake-gcs-server/pull/1827 has been
merged, we can go back to use the upstream version of the image.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2025-03-05 14:49:11 +01:00
Marco Nenciarini
aba0748789
fix(deps): update golang.org/x/net (#188)
See https://github.com/golang/go/issues/71984

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-05 14:08:27 +01:00
renovate[bot]
e1f166023f
fix(deps): update module google.golang.org/grpc to v1.71.0 (#187)
| datasource | package                | from    | to      |
| ---------- | ---------------------- | ------- | ------- |
| go         | google.golang.org/grpc | v1.70.0 | v1.71.0 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 11:48:08 +01:00
renovate[bot]
9aa4368d90
chore(deps): update dependency go to v1.24.1 (#174)
| datasource     | package | from   | to     |
| -------------- | ------- | ------ | ------ |
| golang-version | go      | 1.24.0 | 1.24.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 11:46:23 +01:00
renovate[bot]
7c218a2235
chore(deps): update golang docker tag to v1.24.1 (#186)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.24.0 | 1.24.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 11:45:55 +01:00
Marco Nenciarini
de3225d649
docs: add isWALArchiver to documentation and examples (#185)
Version 1.25.1 of CNPG introduces a new configuration flag called `isWALArchiver`. This flag allows users to designate the plugin as a Write-Ahead Log (WAL) archiver. This update includes the addition of the flag in the examples and documentation.

See also https://github.com/cloudnative-pg/cloudnative-pg/pull/6593

Closes #184

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-03-05 11:00:40 +01:00
renovate[bot]
aacaee4256
chore(deps): update all cloudnative-pg daggerverse dependencies to a20e0c2 (#179)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-04 19:30:03 +01:00
renovate[bot]
0d25af9aa2
chore(deps): update dependency dagger/dagger to v0.16.2 (#181)
| datasource  | package       | from    | to      |
| ----------- | ------------- | ------- | ------- |
| github-tags | dagger/dagger | v0.16.1 | v0.16.2 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-04 19:28:38 +01:00
renovate[bot]
e9f76b13fa
chore(deps): refresh pip-compile outputs (#183)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-03 16:41:36 +01:00
renovate[bot]
12cd519523
fix(deps): update module github.com/cloudnative-pg/cnpg-i-machinery to v0.1.2 (#182)
* fix(deps): update module github.com/cloudnative-pg/cnpg-i-machinery to v0.1.2

| datasource | package                                    | from   | to     |
| ---------- | ------------------------------------------ | ------ | ------ |
| go         | github.com/cloudnative-pg/cnpg-i-machinery | v0.1.1 | v0.1.2 |


Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps):use tagged CNPG api

Signed-off-by: Marco Nenciarini <mnencia@kcore.it>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Marco Nenciarini <mnencia@kcore.it>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Nenciarini <mnencia@kcore.it>
2025-03-02 00:16:24 +01:00
renovate[bot]
e9e636ada0
fix(deps): update github.com/cloudnative-pg/cloudnative-pg digest to 34ab236 (#180)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 10:32:47 +01:00
renovate[bot]
e77799af02
fix(deps): update all non-major go dependencies (#152)
| datasource | package                                    | from                               | to      |
| ---------- | ------------------------------------------ | ---------------------------------- | ------- |
| go         | github.com/cert-manager/cert-manager       | v1.16.3                            | v1.17.1 |
| go         | github.com/cloudnative-pg/cnpg-i-machinery | v0.0.0-20250124134931-9247f383fe01 | v0.1.1  |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 16:09:28 +01:00
Marco Nenciarini
dfbeaf802e
fix(deps): use latest commit from CNPG 1.25 branch (#178)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-02-27 15:26:46 +01:00
renovate[bot]
6ee53e4edf
chore(deps): update dependency kind to v0.27.0 (#175)
| datasource | package                                 | from    | to      |
| ---------- | --------------------------------------- | ------- | ------- |
| git-refs   | https://github.com/kubernetes-sigs/kind | v0.26.0 | v0.27.0 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 11:09:46 +01:00
renovate[bot]
f745c6091c
chore(deps): update golang docker tag to v1.24.0 (#176)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.23.5 | 1.24.0 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 11:08:36 +01:00
renovate[bot]
d5e72472c4
chore(deps): update dependency setuptools to v75.8.2 (#171)
| datasource | package    | from   | to     |
| ---------- | ---------- | ------ | ------ |
| pypi       | setuptools | 75.8.1 | 75.8.2 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 10:41:19 +01:00
renovate[bot]
bb9658b28c
fix(deps): update kubernetes packages to v0.32.2 (#172)
| datasource | package                        | from    | to      |
| ---------- | ------------------------------ | ------- | ------- |
| go         | k8s.io/api                     | v0.32.1 | v0.32.2 |
| go         | k8s.io/apiextensions-apiserver | v0.32.1 | v0.32.2 |
| go         | k8s.io/apimachinery            | v0.32.1 | v0.32.2 |
| go         | k8s.io/client-go               | v0.32.1 | v0.32.2 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 09:04:21 +01:00
renovate[bot]
66d4f24b70
chore(deps): update kindest/node docker tag to v1.32.2 (#170)
| datasource | package      | from    | to      |
| ---------- | ------------ | ------- | ------- |
| docker     | kindest/node | v1.32.1 | v1.32.2 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 18:17:34 +01:00
renovate[bot]
e919975e6c
chore(deps): update dependency setuptools to v75.8.1 (#169)
| datasource | package    | from   | to     |
| ---------- | ---------- | ------ | ------ |
| pypi       | setuptools | 75.8.0 | 75.8.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 18:17:07 +01:00
renovate[bot]
671944f514
chore(deps): update dependency controller-runtime to v0.20.2 (#139)
| datasource | package                                               | from    | to      |
| ---------- | ----------------------------------------------------- | ------- | ------- |
| git-refs   | https://github.com/kubernetes-sigs/controller-runtime | v0.19.3 | v0.20.2 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 18:15:27 +01:00
renovate[bot]
90cbebd0e8
chore(deps): update all sagikazarmark daggerverse dependencies to a2a82ea (#166)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 18:14:14 +01:00
renovate[bot]
6acc0a1446
chore(deps): refresh pip-compile outputs (#168)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 18:13:25 +01:00
Niccolò Fei
ee5fd84092
feat: support additional compression methods in the sidecar image (#158)
Closes #127

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
2025-02-26 18:10:59 +01:00
Francesco Canovai
78300f093d
test: use minimal image for testing (#154)
Use 17-minimal-bookworm images instead of default ones for all the
tests, except the one where we need barman cloud to check compatibility.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2025-02-26 10:59:20 +01:00
renovate[bot]
12776640f8
chore(deps): update dependency barman to v3.12.1 (#156)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| pypi       | barman  | 3.11.1 | 3.12.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 10:56:05 +01:00
smiyc
fddc252241
add "-o yaml" to "kubectl get deployment..." (#160)
Closes #159

Signed-off-by: Daniel Chambre <smiyc@pm.me>
2025-02-26 09:40:34 +01:00
Marco Nenciarini
5dde0c18cd
chore: remove unused Cluster informer cache (#161)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-02-24 18:05:28 +01:00
renovate[bot]
a124b4cdcd
chore(deps): update dependency dagger/dagger to v0.16.1 (#162)
| datasource  | package       | from    | to      |
| ----------- | ------------- | ------- | ------- |
| github-tags | dagger/dagger | v0.15.3 | v0.16.1 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-24 09:21:54 +01:00
Francesco Canovai
51e4dc00ab
chore: update sidecar Dockerfile to use renovate (#135)
Rework the Dockerfile to list Python dependencies.
Those can be updated using renovate.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
2025-02-04 17:47:02 +01:00