Commit Graph

161 Commits

Author SHA1 Message Date
Francesco Canovai
294942bb79
test(e2e): run on ephemeral clusters (#128)
Rework the e2e test to expect a working connection to a cluster when
they start. Developers can create their own clusters and run the tests.

Removed the code used to start kind clusters within the e2e tests.

Reworked the Taskfile to define two environments where the tests can run:

1. An ephemeral one running within Dagger, using the k3s module, to be
used by the CI.
2. A persistent one created with Kind, requiring the kind binary, to be
used for development and debugging when the ephemeral cluster is not
enough.

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>
2025-01-07 14:24:12 +01:00
renovate[bot]
517c5327d1
chore(deps): update docker digest to 1379b45 (#137)
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-30 10:23:46 +01:00
renovate[bot]
3168eba08b
chore(deps): update docker digest to b9f35e2 (#136)
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-30 09:21:51 +01:00
renovate[bot]
4d71b02cd2
chore(deps): update docker digest to 723df11 (#129)
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-27 17:54:16 +01:00
renovate[bot]
5f49a0f8c4
chore(deps): update all cloudnative-pg daggerverse dependencies to b8e24f5 (#133)
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-24 17:14:36 +01:00
renovate[bot]
a76e06728a
chore(deps): update all cloudnative-pg daggerverse dependencies to 15ae21b (#120)
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-23 17:07:15 +01:00
renovate[bot]
07138fc81d
chore(deps): update gh digest to c1be271 (#125)
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-23 16:29:52 +01:00
Francesco Canovai
d4cd8fddd9
ci: use upstream kustomize dagger module (#117)
The patch we required in commit 17dae370 has been merged in the upstream
kustomize module. We go back to using it.

Closes #116

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-17 14:41:31 +01:00
renovate[bot]
aa4551259e
chore(deps): update gh digest to 8759a52 (#106)
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-17 12:09:31 +01:00
renovate[bot]
3f0a6b0232
chore(deps): update kustomize digest to c1be271 (#121)
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-16 14:47:59 +01:00
renovate[bot]
b83d057761
chore(deps): update kustomize digest to 8759a52 (#108)
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-16 14:43:08 +01:00
renovate[bot]
91d06ac91f
chore(deps): update dependency dagger/dagger to v0.15.1 (#101)
| datasource  | package       | from    | to      |
| ----------- | ------------- | ------- | ------- |
| github-tags | dagger/dagger | v0.14.0 | v0.15.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-12-16 13:26:33 +01:00
renovate[bot]
615ff3d3fb
chore(deps): update golangci-lint digest to c1be271 (#113)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-16 12:05:17 +01:00
renovate[bot]
686175ffbc
chore(deps): update docker digest to 14c1374 (#110)
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-16 10:36:47 +01:00
renovate[bot]
a1a35503dc
chore(deps): update golangci-lint digest to 8759a52 (#107)
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-16 09:59:04 +01:00
renovate[bot]
fd9d03fb48
chore(deps): update kustomize digest to 9ee6739 (#100)
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-12 10:55:58 +01:00
renovate[bot]
858bf09a44
chore(deps): update gh digest to 9ee6739 (#98)
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-12 10:19:56 +01:00
renovate[bot]
6ed1ef69f6
chore(deps): update dependency controller-runtime to v0.19.3 (#77)
| datasource | package                                               | from    | to      |
| ---------- | ----------------------------------------------------- | ------- | ------- |
| git-refs   | https://github.com/kubernetes-sigs/controller-runtime | v0.19.2 | v0.19.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-12-12 10:19:25 +01:00
renovate[bot]
c864c13412
chore(deps): update golangci-lint digest to 9ee6739 (#99)
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-12 09:53:59 +01:00
renovate[bot]
3d0d3ff856
chore(deps): update all cloudnative-pg daggerverse dependencies to f2acc8d (#93)
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-12 09:43:09 +01:00
Francesco Canovai
781a2f7401
test(e2e): parallelise test execution (#94)
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-12-11 16:23:29 +01:00
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
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
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
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]
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
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
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
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
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]
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
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
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
renovate[bot]
44986ab3b7
chore(deps): update all cloudnative-pg daggerverse dependencies to 43d7831 (#28)
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-29 15:37:16 +01:00
renovate[bot]
4634856812
chore(deps): update gh digest to 68e9daa (#34)
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-29 15:00:14 +01:00
Francesco Canovai
f877bb19d7
ci: build amd64 and arm64 images for the sidecar and the plugin (#26)
Adds support for building and publishing Docker images for both amd64 and arm64 architectures.
Ensures compatibility across multiple platforms by using cross-compilation.
Updates relevant configuration files for CI/CD to handle the new build process.
Fixes issues related to Python version conflicts and ensures the correct directory structure in the final image.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
2024-10-24 10:27:26 +02:00
renovate[bot]
738afcb42f
chore(deps): update gh digest to 14ff058 (#31)
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-14 10:14:03 +02:00
renovate[bot]
ea59338082
chore(deps): update golangci-lint digest to 14ff058 (#32)
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-14 09:32:04 +02:00
renovate[bot]
4a067714d4
chore(deps): update kustomize digest to 14ff058 (#33)
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-14 09:20:09 +02:00
renovate[bot]
e78aee07da
chore(deps): update golang docker tag to v1.23.2 (#21)
| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| docker     | golang  | 1.23.1 | 1.23.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-10-02 15:03:21 +02:00
renovate[bot]
d9c228934f
chore(deps): update docker digest to d743877 (#14)
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-01 11:10:57 +02:00
renovate[bot]
53f5f4cb83
chore(deps): update kustomize digest to c5e9855 (#8)
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-09-27 09:46:44 +02:00
renovate[bot]
e0bd94a995
chore(deps): update gh digest to c5e9855 (#5)
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-09-26 17:58:48 +02:00
renovate[bot]
6b02280c59
chore(deps): update golangci-lint digest to c5e9855 (#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>
2024-09-26 17:38:03 +02:00
Francesco Canovai
8c2bf2e6b7
ci: initial pipeline (#3)
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
2024-09-26 17:27:56 +02:00