From 0565dae9b0b60d7ec8f8162d61445af75fb037fa Mon Sep 17 00:00:00 2001 From: Jakub Hajek Date: Mon, 4 Aug 2025 15:11:32 +0200 Subject: [PATCH 1/3] Add CNPG Barman Cloud Plugin --- .../config.jsonnet | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet diff --git a/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet b/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet new file mode 100644 index 00000000..5bdcb334 --- /dev/null +++ b/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet @@ -0,0 +1,24 @@ +// libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet + +local config = import 'jsonnet/config.jsonnet'; + +local versions = [ + { version: 'v0.5.0' }, +]; + +config.new( + name='cloudnative-pg-barman-cloud-plugin', + specs=[ + { + local url = 'https://raw.githubusercontent.com/cloudnative-pg/plugin-barman-cloud/config/crd/bases/', + output: v.version, + crds: + [ + '%s/barmancloud.cnpg.io_objectstores.yaml' % url, + ], + prefix: '^io\\.cnpg\\.barmancloud\\..*', + localName: 'cloudnative-pg-barman-cloud-plugin', + } + for v in versions + ] +) \ No newline at end of file From efb132e893191684a6711c0989b3152254a14826 Mon Sep 17 00:00:00 2001 From: Jakub Hajek Date: Mon, 8 Sep 2025 12:04:57 +0200 Subject: [PATCH 2/3] Bump version --- libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet b/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet index 5bdcb334..3ee35d99 100644 --- a/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet +++ b/libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet @@ -3,7 +3,7 @@ local config = import 'jsonnet/config.jsonnet'; local versions = [ - { version: 'v0.5.0' }, + { version: 'v0.6.0' }, ]; config.new( From 03c8608cb5c0a88a51168aa605c874bc34bc1bd1 Mon Sep 17 00:00:00 2001 From: Jakub Hajek Date: Tue, 9 Sep 2025 09:56:59 +0200 Subject: [PATCH 3/3] Update GHA worklflow --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f2d6185..dc5252f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -611,6 +611,46 @@ "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" "if": "steps.filter.outputs.workflows == 'true'" "run": "make libs/cloudnative-pg" + "cloudnative-pg-barman-cloud-plugin": + "name": "Generate cloudnative-pg-barman-cloud-plugin Jsonnet library and docs" + "needs": + - "build" + - "repos" + "runs-on": "ubuntu-latest" + "steps": + - "uses": "actions/checkout@v4" + - "id": "filter" + "uses": "dorny/paths-filter@v3" + "with": + "filters": | + workflows: + - '.github/**' + - 'bin/**' + - 'Dockerfile' + - 'go.mod' + - 'go.sum' + - 'jsonnet/**' + - 'main.go' + - 'Makefile' + - 'pkg/**' + - 'scripts/**' + - 'tf/**' + - 'libs/cloudnative-pg-barman-cloud-plugin/**' + - "if": "steps.filter.outputs.workflows == 'true'" + "uses": "actions/download-artifact@v4" + "with": + "name": "docker-artifact" + "path": "artifacts" + - "if": "steps.filter.outputs.workflows == 'true'" + "run": "make load" + - "env": + "DIFF": "true" + "GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}" + "GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com" + "GIT_COMMITTER_NAME": "jsonnet-libs-bot" + "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" + "if": "steps.filter.outputs.workflows == 'true'" + "run": "make libs/cloudnative-pg-barman-cloud-plugin" "cluster-api": "name": "Generate cluster-api Jsonnet library and docs" "needs": @@ -2513,6 +2553,7 @@ - "cilium" - "clickhouse-operator" - "cloudnative-pg" + - "cloudnative-pg-barman-cloud-plugin" - "cluster-api" - "cluster-api-provider-aws" - "cnrm"