Commit Graph

437 Commits

Author SHA1 Message Date
renovate[bot]
423cd5fe3d
fix(deps): update kubernetes packages to v0.33.4 (#481)
| datasource | package                        | from    | to      |
| ---------- | ------------------------------ | ------- | ------- |
| go         | k8s.io/api                     | v0.33.3 | v0.33.4 |
| go         | k8s.io/apiextensions-apiserver | v0.33.3 | v0.33.4 |
| go         | k8s.io/apimachinery            | v0.33.3 | v0.33.4 |
| go         | k8s.io/client-go               | v0.33.3 | v0.33.4 |

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-08-20 13:46:09 +02:00
renovate[bot]
15d84bcabf
chore(deps): update kindest/node docker tag to v1.33.2 (#468)
| datasource | package      | from    | to      |
| ---------- | ------------ | ------- | ------- |
| docker     | kindest/node | v1.33.1 | v1.33.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-08-20 10:48:05 +02:00
renovate[bot]
fa20c09525
fix(deps): update module sigs.k8s.io/kustomize/api to v0.20.1 (#471)
| datasource | package                   | from    | to      |
| ---------- | ------------------------- | ------- | ------- |
| go         | sigs.k8s.io/kustomize/api | v0.20.0 | v0.20.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-08-19 16:29:40 +02:00
renovate[bot]
a7bde51c63
fix(deps): update all non-major go dependencies (#469)
| datasource | package                                  | from                                 | to      |
| ---------- | ---------------------------------------- | ------------------------------------ | ------- |
| go         | github.com/cloudnative-pg/api            | v1.26.0                              | v1.27.0 |
| go         | github.com/cloudnative-pg/barman-cloud   | v0.3.1                               | v0.3.3  |
| go         | github.com/cloudnative-pg/cloudnative-pg | v1.26.0                              | v1.27.0 |
| go         | github.com/cloudnative-pg/cnpg-i         | v0.2.2-0.20250723093238-963c368523c2 | v0.3.0  |
| go         | github.com/cloudnative-pg/machinery      | v0.3.0                               | v0.3.1  |
| go         | github.com/onsi/ginkgo/v2                | v2.23.4                              | v2.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-08-19 15:31:36 +02:00
Gabriele Fedi
e0c8b64470
fix: add cluster/finalizers update permission (#465)
Add the required missing permission to operate in k8s
environments where the Admission Controller
Plugin "OwnerReferencesPermissionEnforcement"
is enabled.

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
2025-08-14 22:55:25 +02:00
Leonardo Cecchi
3a770798c7
fix(ci): show test output on failures (#461)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-08-14 22:52:54 +02:00
Leonardo Cecchi
b2645827b8
fix(images): use bookworm for sidecar image (#476)
We were using debian trixie as a building environment for barman-cloud,
but we were still using bookworm as a base image. This caused
inconsistencies in the sidecar image.

Now we always use bookworm.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-08-14 22:21:52 +02:00
Leonardo Cecchi
e40ba7065a
fix(unit-tests): metrics collect length (#475)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-08-14 17:01:56 +02:00
Gabriele Bartolini
54dd2261a0
chore: fix typo lastSuccussfulBackupTime (#462)
Closes #452

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-08-14 23:29:59 +10:00
Leonardo Cecchi
551a3cde09
feat: last failed backup status field and metric (#467)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
2025-08-12 14:32:54 +10:00
renovate[bot]
32a5539c18
fix(deps): update kubernetes packages to v0.33.3 (#450)
| datasource | package                        | from    | to      |
| ---------- | ------------------------------ | ------- | ------- |
| go         | k8s.io/api                     | v0.33.2 | v0.33.3 |
| go         | k8s.io/apiextensions-apiserver | v0.33.2 | v0.33.3 |
| go         | k8s.io/apimachinery            | v0.33.2 | v0.33.3 |
| go         | k8s.io/client-go               | v0.33.2 | v0.33.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-08-11 13:42:35 +02:00
renovate[bot]
e92493a4b4
chore(deps): update golangci/golangci-lint docker tag to v2.3.1 (#445)
| datasource | package                | from   | to     |
| ---------- | ---------------------- | ------ | ------ |
| docker     | golangci/golangci-lint | v2.2.1 | v2.3.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-08-09 20:48:49 +02:00
renovate[bot]
9a6afdfb23
chore(deps): update golang docker tag to v1.24.6 (#442)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.24.4 | 1.24.6 |

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-08-09 20:03:51 +02:00
Armando Ruocco
33172b6466
feat: add upstream backup and recovery metrics (#459)
Introduce two new Prometheus metrics sourced from the Barman Cloud plugin:

- `barman_cloud_cloudnative_pg_io_first_recoverability_point`
- `barman_cloud_cloudnative_pg_io_last_available_backup_timestamp`

These metrics supersede the following deprecated CNPG metrics:

- `cnpg_collector_first_recoverability_point`
- `cnpg_collector_last_available_backup_timestamp`

Depends on: https://github.com/cloudnative-pg/cloudnative-pg/pull/8033

Relates to: #380 

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-08-08 09:15:19 +10:00
Leonardo Cecchi
950364b955
fix: check for empty WAL archive during WAL archiving (#458)
In the in-tree barman-cloud implementation, the check for an empty WAL
archive is performed both immediately after the restore process and when the
first WAL file is archived.

Previously, the plugin-based implementation only performed this check after
restore, skipping it during archiving of the first WAL. This patch restores
parity with the in-tree behavior by ensuring the check is also performed
during WAL archiving.

Closes: #457

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-08-07 09:03:21 +10:00
renovate[bot]
3fa8072e30
chore(deps): lock file maintenance (#447)
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-07-23 10:57:40 +02:00
renovate[bot]
68dfd0e75e
fix(deps): update module github.com/cloudnative-pg/api to v1.26.0 (#440)
| datasource | package                       | from        | to      |
| ---------- | ----------------------------- | ----------- | ------- |
| go         | github.com/cloudnative-pg/api | v1.26.0-rc1 | v1.26.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-07-08 16:53:41 +02:00
renovate[bot]
f89f905978
chore(deps): lock file maintenance (#441)
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-07-07 16:13:23 +02:00
Jonathan Gonzalez V.
286cb24eb7
chore: update sidecar-requirements.txt (#438)
The sidecar-requirements.txt was out-dated, after the update we close
a few security issues.

Closes #437

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
2025-07-03 15:53:53 +02:00
renovate[bot]
e98faccf72
fix(deps): update module github.com/cloudnative-pg/cnpg-i-machinery to v0.4.0 (#439)
| datasource | package                                    | from   | to     |
| ---------- | ------------------------------------------ | ------ | ------ |
| go         | github.com/cloudnative-pg/cnpg-i-machinery | v0.3.0 | v0.4.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-07-03 15:10:23 +02:00
dependabot[bot]
7da4ad7759
chore(deps): bump github.com/go-viper/mapstructure/v2 (#436)
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-03 14:25:50 +02:00
renovate[bot]
60280118c4
fix(deps): update all non-major go dependencies (#435)
| datasource | package                              | from    | to      |
| ---------- | ------------------------------------ | ------- | ------- |
| go         | github.com/cert-manager/cert-manager | v1.18.1 | v1.18.2 |
| go         | github.com/cloudnative-pg/machinery  | v0.2.0  | v0.3.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-07-02 22:22:34 +02:00
George Gaál
5b69cdf253
docs: avoid using grep to parse kubectl output (#404)
Updated the installation instructions to use only `kubectl`
for displaying the CNPG operator version.

Signed-off-by: George Gaál <gb12335@gmail.com>
2025-07-02 11:57:52 +02:00
Jonathan Gonzalez V.
2a75d40356
fix: logic to retrieve ObjectStore from cache (#429)
There was mistake on the object used to compare the ObjectStore, we were
using a type Secret instead of ObjectStore.

Also, make it more clear the logic to retrieve the cached objects by getting
the cached objects when are cached.

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
2025-07-02 11:12:54 +02:00
renovate[bot]
0769a28a8e
fix(deps): update module github.com/cert-manager/cert-manager to v1.18.1 (#401)
| datasource | package                              | from    | to      |
| ---------- | ------------------------------------ | ------- | ------- |
| go         | github.com/cert-manager/cert-manager | v1.17.2 | v1.18.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-07-01 18:06:42 +02:00
renovate[bot]
7aaebb3c25
fix(deps): lock file maintenance documentation dependencies (#412)
| datasource | package                             | from   | to     |
| ---------- | ----------------------------------- | ------ | ------ |
| npm        | @easyops-cn/docusaurus-search-local | 0.51.0 | 0.51.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-07-01 18:05:43 +02:00
renovate[bot]
d0013dfe12
fix(deps): update module sigs.k8s.io/kustomize/api to v0.20.0 (#431)
| datasource | package                   | from    | to      |
| ---------- | ------------------------- | ------- | ------- |
| go         | sigs.k8s.io/kustomize/api | v0.19.0 | v0.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-07-01 18:04:13 +02:00
renovate[bot]
30c840aff5
chore(deps): update golangci/golangci-lint docker tag to v2.2.1 (#430)
* chore(deps): update golangci/golangci-lint docker tag to v2.2.1

| datasource | package                | from   | to     |
| ---------- | ---------------------- | ------ | ------ |
| docker     | golangci/golangci-lint | v2.1.6 | v2.2.1 |


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

* ci: configure revive new varname check

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>

---------

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-07-01 17:34:08 +02:00
renovate[bot]
d2006fd098
chore(deps): update dependency barman to v3.14.1 (#416)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| pypi       | barman  | 3.14.0 | 3.14.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-07-01 17:21:24 +02:00
renovate[bot]
e598fb381f
fix(deps): update kubernetes packages to v0.33.2 (#410)
| datasource | package                        | from    | to      |
| ---------- | ------------------------------ | ------- | ------- |
| go         | k8s.io/api                     | v0.33.1 | v0.33.2 |
| go         | k8s.io/apiextensions-apiserver | v0.33.1 | v0.33.2 |
| go         | k8s.io/apimachinery            | v0.33.1 | v0.33.2 |
| go         | k8s.io/client-go               | v0.33.1 | v0.33.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-07-01 14:31:41 +02:00
Niccolò Fei
7904b435e2
chore: controller-gen task should respect kubebuilder:rbac markers (#426)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
2025-07-01 11:28:11 +02:00
smiyc
a225902a36
docs: workaround for S3 checksum validation errors with recent boto3 versions (#398)
Fixes #393

Signed-off-by: Daniel Chambre <smiyc@pm.me>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
2025-06-20 15:37:23 +02:00
renovate[bot]
4d323c2d3d
fix(deps): lock file maintenance documentation dependencies (#407)
| datasource | package                             | from   | to     |
| ---------- | ----------------------------------- | ------ | ------ |
| npm        | @easyops-cn/docusaurus-search-local | 0.50.0 | 0.51.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-06-18 14:28:56 +02:00
renovate[bot]
e58973cd55
fix(deps): update k8s.io/utils digest to 4c0f3b2 (#392)
| datasource | package      | from                               | to                                 |
| ---------- | ------------ | ---------------------------------- | ---------------------------------- |
| go         | k8s.io/utils | v0.0.0-20250502105355-0f33e8f1c979 | v0.0.0-20250604170112-4c0f3b243397 |

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-06-10 11:28:54 +02:00
renovate[bot]
1365906204
fix(deps): update module google.golang.org/grpc to v1.73.0 (#394)
| datasource | package                | from    | to      |
| ---------- | ---------------------- | ------- | ------- |
| go         | google.golang.org/grpc | v1.72.2 | v1.73.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-06-10 11:28:31 +02:00
renovate[bot]
c8f6ccfa57
chore(deps): update golang docker tag to v1.24.4 (#397)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.24.3 | 1.24.4 |

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-06-10 10:27:31 +02:00
renovate[bot]
7146c51de1
fix(deps): lock file maintenance documentation dependencies (#399)
| datasource | package                         | from  | to    |
| ---------- | ------------------------------- | ----- | ----- |
| npm        | @docusaurus/core                | 3.8.0 | 3.8.1 |
| npm        | @docusaurus/module-type-aliases | 3.8.0 | 3.8.1 |
| npm        | @docusaurus/preset-classic      | 3.8.0 | 3.8.1 |
| npm        | @docusaurus/tsconfig            | 3.8.0 | 3.8.1 |
| npm        | @docusaurus/types               | 3.8.0 | 3.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-06-10 10:26:50 +02:00
Marco Nenciarini
b45cddfc19
chore: make sure logging is set properly (#396)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-06-06 10:55:29 +02:00
renovate[bot]
a0327ea574
fix(deps): lock file maintenance documentation dependencies (#379)
| datasource | package                             | from   | to     |
| ---------- | ----------------------------------- | ------ | ------ |
| npm        | @docusaurus/core                    | 3.7.0  | 3.8.0  |
| npm        | @docusaurus/module-type-aliases     | 3.7.0  | 3.8.0  |
| npm        | @docusaurus/preset-classic          | 3.7.0  | 3.8.0  |
| npm        | @docusaurus/tsconfig                | 3.7.0  | 3.8.0  |
| npm        | @docusaurus/types                   | 3.7.0  | 3.8.0  |
| npm        | @easyops-cn/docusaurus-search-local | 0.49.2 | 0.50.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-06-04 11:56:08 +02:00
renovate[bot]
8b01bb96b5
chore(deps): update docusaurus digest to 3b7d706 (#387)
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-06-04 10:18:07 +02:00
Marco Nenciarini
f4dfd30ac5
ci(renovate): fix docusaurus renovate line (#386)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-06-04 10:15:53 +02:00
Peggie
c42bdfe455
chore(main): release 0.5.0 (#383)
Signed-off-by: Peggie <info@cloudnative-pg.io>
2025-06-03 18:20:09 +02:00
Marco Nenciarini
96f12d75c8
docs(release): documentation for release 0.5.0 (#384)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-06-03 17:09:58 +02:00
Marco Nenciarini
e93eccdf31
ci(release-please): fix workflow permissions (#382)
Follows #352

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-06-03 14:28:50 +02:00
Marco Nenciarini
40316b5f2d
fix: remove lifecycle Pod Patch subscription (#378)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
2025-06-03 10:48:39 +02:00
Marco Nenciarini
8fcd748c3b
ci: publish documentation if something changes (#375)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-05-29 18:45:25 +02:00
Marco Nenciarini
5aa6c523c6
ci: use alpine/openssl in generate-certs task (#376)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-05-29 18:40:46 +02:00
Marco Nenciarini
35500130bf
feat(deps): update dependency barman to v3.14.0 (#368)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-05-29 18:40:01 +02:00
Marco Nenciarini
008cf67d67
ci: start-kind-cluster depends on generate-certs (#374)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-05-29 18:07:15 +02:00
Gabriele Bartolini
4b597e31ac
docs: release procedure (#373)
Closes #371

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-05-29 17:52:44 +02:00