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" 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..3ee35d99 --- /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.6.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