Skip to content

Commit 1c3d49b

Browse files
authored
Add CNPG Barman Cloud Plugin (#558)
* Add CNPG Barman Cloud Plugin * Bump version * Update GHA worklflow
1 parent d56873b commit 1c3d49b

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,46 @@
611611
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
612612
"if": "steps.filter.outputs.workflows == 'true'"
613613
"run": "make libs/cloudnative-pg"
614+
"cloudnative-pg-barman-cloud-plugin":
615+
"name": "Generate cloudnative-pg-barman-cloud-plugin Jsonnet library and docs"
616+
"needs":
617+
- "build"
618+
- "repos"
619+
"runs-on": "ubuntu-latest"
620+
"steps":
621+
- "uses": "actions/checkout@v4"
622+
- "id": "filter"
623+
"uses": "dorny/paths-filter@v3"
624+
"with":
625+
"filters": |
626+
workflows:
627+
- '.github/**'
628+
- 'bin/**'
629+
- 'Dockerfile'
630+
- 'go.mod'
631+
- 'go.sum'
632+
- 'jsonnet/**'
633+
- 'main.go'
634+
- 'Makefile'
635+
- 'pkg/**'
636+
- 'scripts/**'
637+
- 'tf/**'
638+
- 'libs/cloudnative-pg-barman-cloud-plugin/**'
639+
- "if": "steps.filter.outputs.workflows == 'true'"
640+
"uses": "actions/download-artifact@v4"
641+
"with":
642+
"name": "docker-artifact"
643+
"path": "artifacts"
644+
- "if": "steps.filter.outputs.workflows == 'true'"
645+
"run": "make load"
646+
- "env":
647+
"DIFF": "true"
648+
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
649+
"GIT_COMMITTER_EMAIL": "[email protected]"
650+
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
651+
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
652+
"if": "steps.filter.outputs.workflows == 'true'"
653+
"run": "make libs/cloudnative-pg-barman-cloud-plugin"
614654
"cluster-api":
615655
"name": "Generate cluster-api Jsonnet library and docs"
616656
"needs":
@@ -2513,6 +2553,7 @@
25132553
- "cilium"
25142554
- "clickhouse-operator"
25152555
- "cloudnative-pg"
2556+
- "cloudnative-pg-barman-cloud-plugin"
25162557
- "cluster-api"
25172558
- "cluster-api-provider-aws"
25182559
- "cnrm"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// libs/cloudnative-pg-barman-cloud-plugin/config.jsonnet
2+
3+
local config = import 'jsonnet/config.jsonnet';
4+
5+
local versions = [
6+
{ version: 'v0.6.0' },
7+
];
8+
9+
config.new(
10+
name='cloudnative-pg-barman-cloud-plugin',
11+
specs=[
12+
{
13+
local url = 'https://raw.githubusercontent.com/cloudnative-pg/plugin-barman-cloud/config/crd/bases/',
14+
output: v.version,
15+
crds:
16+
[
17+
'%s/barmancloud.cnpg.io_objectstores.yaml' % url,
18+
],
19+
prefix: '^io\\.cnpg\\.barmancloud\\..*',
20+
localName: 'cloudnative-pg-barman-cloud-plugin',
21+
}
22+
for v in versions
23+
]
24+
)

0 commit comments

Comments
 (0)