Commit Graph

180 Commits

Author SHA1 Message Date
Francesco Canovai
2a413c7b6b
ci: add manifest for images generated by main branch (#92)
Automatically generate a manifest.yaml file that can be applied to
evaluate the content of the latest commit of the main branch.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-10 15:58:17 +01:00
Francesco Canovai
17dae37096
ci: generate the manifest from kubernetes dir (#91)
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-10 13:13:51 +01:00
Jonathan Gonzalez V.
bb89d46f77
chore(containers): use ubi-micro for operator image (#61)
Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
2024-12-10 13:11:10 +01:00
Francesco Canovai
e5a004d20d
test(e2e): replica cluster (#88)
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-12-09 16:05:36 +01:00
renovate[bot]
c4623066ce
chore(deps): update controller-gen digest to fa2e604 (#87)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 13:52:40 +01:00
Leonardo Cecchi
e4735a2f85
feat: separate recovery object store from replica source (#83)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
2024-12-09 13:29:20 +01:00
Francesco Canovai
56a163b46c
ci: improve caching (#84)
Improve cache usage for faster local ci runs.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-09 11:40:11 +01:00
renovate[bot]
cef931a971
chore(deps): update docker digest to bd405d3 (#50)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 10:16:33 +01:00
renovate[bot]
83b8d69b91
chore(deps): update all cloudnative-pg daggerverse dependencies to fa2e604 (#85)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 17:37:36 +01:00
Francesco Canovai
1e6c69bac0 fix: obsolete deepcopy
Having automated controller-gen invocation, we noticed that the
generated deepcopy file was obsolete.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-06 17:34:40 +01:00
Jonathan Gonzalez V
c8cfc32c40 ci: add controller-gen task
Add a task to run controller-gen, and put it as a dependency for
the uncommitted and manifest task.

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-06 17:34:40 +01:00
renovate[bot]
1ea9e93135
chore(deps): update dependency dagger/dagger to v0.14.0 (#86)
| datasource  | package       | from    | to      |
| ----------- | ------------- | ------- | ------- |
| github-tags | dagger/dagger | v0.13.6 | v0.14.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>
2024-12-06 17:07:17 +01:00
renovate[bot]
ee1f84b70e
chore(deps): update kustomize digest to 32b01ce (#74)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 16:52:51 +01:00
Jonathan Gonzalez V.
ab98fdac2d
chore: renovate custom dagger runner image (#65)
Allow renovate to also update the dagger images used for the custom
runner.

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-06 16:42:43 +01:00
renovate[bot]
2d5f38130b
chore(deps): update all cloudnative-pg daggerverse dependencies to c899668 (#75)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 15:50:59 +01:00
renovate[bot]
4c8db6dad6
chore(deps): update dependency go to v1.23.4 (#79)
| datasource     | package | from   | to     |
| -------------- | ------- | ------ | ------ |
| golang-version | go      | 1.23.3 | 1.23.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>
2024-12-06 14:28:06 +01:00
renovate[bot]
e47b26b11e
chore(deps): update golang docker tag to v1.23.4 (#80)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.23.3 | 1.23.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>
2024-12-06 13:32:14 +01:00
Jonathan Gonzalez V.
4e66d79fdb
chore: limit renovate PRs and rebases (#56)
Limit the amount of PRs opened by renovate and also do not auto
rebase the PRs to avoid consuming all the GitHub Runners

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
2024-12-06 12:36:00 +01:00
Francesco Canovai
ecef64d506
test(e2e): enable GCS tests with fake-gcs-server (#82)
Activate backup and restore tests with GCS using the fake-gcs-server
emulator. Use a fork that support partial reads.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-05 14:24:59 +01:00
Leonardo Cecchi
be4037529c
feat: additional environment variables (#81)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-05 13:18:18 +01:00
Leonardo Cecchi
e30edd2318
feat: separate recovery and cluster object store (#76)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-05 12:05:14 +01:00
Francesco Canovai
af60a15837
test(e2e): backup and restore (#71)
Run basic backup and restore tests for the plugin. Use MinIO for S3,
Azurite for ACS and fake-gcs-server for GCS.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-02 15:53:34 +01:00
Armando Ruocco
5fd9449b27
feat: add liveness and readiness probe support (#69)
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-02 14:51:32 +01:00
renovate[bot]
9404772ede
chore(deps): update gh digest to 32b01ce (#72)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 14:25:03 +01:00
renovate[bot]
615356d8d3
chore(deps): update golangci-lint digest to 32b01ce (#73)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 13:34:39 +01:00
Leonardo Cecchi
9d8fa079fe
fix: exit code 0 on clean shutdown (#70)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-11-29 16:15:04 +01:00
Armando Ruocco
afd4603023
fix: ensure restore configuration points to manager wal-restore (#68)
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-11-28 14:04:50 +01:00
renovate[bot]
74d4f5d190
fix(deps): update module sigs.k8s.io/controller-runtime to v0.19.2 (#67)
| datasource | package                        | from    | to      |
| ---------- | ------------------------------ | ------- | ------- |
| go         | sigs.k8s.io/controller-runtime | v0.19.1 | v0.19.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>
2024-11-26 14:21:55 +00:00
renovate[bot]
588c330b34
chore(deps): update dependency controller-runtime to v0.19.2 (#66)
| datasource | package                                               | from    | to      |
| ---------- | ----------------------------------------------------- | ------- | ------- |
| git-refs   | https://github.com/kubernetes-sigs/controller-runtime | v0.19.1 | v0.19.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>
2024-11-26 13:28:30 +00:00
Leonardo Cecchi
9c77e3de9f
fix: avoid injecting the plugin environment into the PG container (#62)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-11-22 16:35:01 +01:00
renovate[bot]
c639af1295
fix(deps): update kubernetes packages to v0.31.3 (#64)
| datasource | package                        | from    | to      |
| ---------- | ------------------------------ | ------- | ------- |
| go         | k8s.io/api                     | v0.31.2 | v0.31.3 |
| go         | k8s.io/apiextensions-apiserver | v0.31.2 | v0.31.3 |
| go         | k8s.io/apimachinery            | v0.31.2 | v0.31.3 |
| go         | k8s.io/client-go               | v0.31.2 | v0.31.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>
2024-11-21 19:47:34 +00:00
renovate[bot]
03d1807dd5
chore(deps): update gh digest to 7fc77a4 (#54)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 15:36:03 +00:00
renovate[bot]
e0926e9533
chore(deps): update all cloudnative-pg daggerverse dependencies to d24d288 (#60)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 13:27:45 +00:00
renovate[bot]
b2d3032054
fix(deps): update module sigs.k8s.io/kustomize/api to v0.18.0 (#51)
| datasource | package                   | from    | to      |
| ---------- | ------------------------- | ------- | ------- |
| go         | sigs.k8s.io/kustomize/api | v0.17.3 | v0.18.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>
2024-11-21 04:53:25 +00:00
renovate[bot]
53d2c09993
fix(deps): update module github.com/cert-manager/cert-manager to v1.16.2 [security] (#63)
| datasource | package                              | from    | to      |
| ---------- | ------------------------------------ | ------- | ------- |
| go         | github.com/cert-manager/cert-manager | v1.16.1 | v1.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>
2024-11-21 02:34:22 +00:00
renovate[bot]
76b64c0d5a
chore(deps): update kustomize digest to 7fc77a4 (#57)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 21:10:58 +00:00
renovate[bot]
d1e79a45af
chore(deps): update golangci-lint digest to 7fc77a4 (#55)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 16:33:21 +00:00
renovate[bot]
906fd233ee
chore(deps): update golang docker tag to v1.23.3 (#39)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.23.2 | 1.23.3 |
| docker     | golang  | 1.23.1 | 1.23.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>
2024-11-20 09:15:27 +01:00
renovate[bot]
b854830a3f
chore(deps): update dependency controller-runtime to v0.19.1 (#42)
| datasource | package                                               | from    | to      |
| ---------- | ----------------------------------------------------- | ------- | ------- |
| git-refs   | https://github.com/kubernetes-sigs/controller-runtime | v0.19.0 | v0.19.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>
2024-11-19 13:02:49 +00:00
renovate[bot]
3b3ca7ff3e
chore(deps): update all cloudnative-pg daggerverse dependencies to 32dae44 (#45)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-19 10:39:10 +00:00
renovate[bot]
576ff6e058
chore(deps): update dependency dagger/dagger to v0.14.0 (#46)
| datasource  | package       | from    | to      |
| ----------- | ------------- | ------- | ------- |
| github-tags | dagger/dagger | v0.13.6 | v0.14.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>
2024-11-19 10:44:37 +01:00
renovate[bot]
28f4ec6ff2
chore(deps): update dependency go to v1.23.3 (#49)
| datasource     | package | from   | to     |
| -------------- | ------- | ------ | ------ |
| golang-version | go      | 1.23.1 | 1.23.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>
2024-11-19 10:21:54 +01:00
renovate[bot]
07215c7c75
chore(deps): update python docker tag to v3.13 (#40)
| datasource | package | from | to   |
| ---------- | ------- | ---- | ---- |
| docker     | python  | 3.12 | 3.13 |

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-19 09:00:56 +00:00
Francesco Canovai
c77be7fe03
test(e2e): remove exec.Command calls (#53)
Switch from using exec.Command to using kind and docker as libraries, so
tests won't depend on external binaries.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-11-18 10:09:57 +01:00
Armando Ruocco
beef96e12f
chore: add secrets cache (#47)
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-11-14 16:10:17 +01:00
Francesco Canovai
74bc9e221e
test(e2e): environment setup (#43)
Create the CI and testing infrastructure for e2e testing. Running the ci
task now will push the plugin and sidecar images to a local registry,
start kind, install the CloudNativePG and cert-manager operators, and
then install the plugin-barman-cloud one.

No actual test is implemented.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-11-14 09:44:18 +01:00
renovate[bot]
b7c4a4bb10
chore(deps): update kustomize digest to 68e9daa (#36)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 18:18:02 +00:00
Armando Ruocco
240077c771
feat(spike): restore (#29)
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-11-06 16:01:56 +01:00
renovate[bot]
5d0038ecc5
chore(deps): update docker digest to 4778f39 (#37)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-30 14:31:18 +01:00
renovate[bot]
e810c649ae
chore(deps): update golangci-lint digest to 68e9daa (#35)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-30 13:49:20 +01:00