Skip to content

Add Barman Cloud plugin cluster support#910

Open
franzudev wants to merge 1 commit into
cloudnative-pg:mainfrom
franzudev:add-barman-cloud-plugin-cluster
Open

Add Barman Cloud plugin cluster support#910
franzudev wants to merge 1 commit into
cloudnative-pg:mainfrom
franzudev:add-barman-cloud-plugin-cluster

Conversation

@franzudev

Copy link
Copy Markdown

Summary

Add optional Barman Cloud CNPG-I plugin support to the cluster chart.

The new barmanCloudPlugin values block can:

  • configure Cluster.spec.plugins with the Barman Cloud plugin as WAL archiver
  • render a plugin ObjectStore
  • create S3 credentials either as a Kubernetes Secret or an optional ExternalSecret
  • create plugin-based ScheduledBackup resources

The feature is mutually exclusive with backups.enabled, because the CloudNativePG API does not allow a WAL archiver plugin and spec.backup.barmanObjectStore to be configured at the same time.

Validation

  • make docs schema
  • helm lint charts/cluster
  • helm lint charts/cluster --values charts/cluster/examples/barman-cloud-plugin.yaml
  • helm template test charts/cluster
  • helm template test charts/cluster --set barmanCloudPlugin.enabled=true --set barmanCloudPlugin.s3.bucket=my-bucket --set barmanCloudPlugin.s3.inheritFromIAMRole=true
  • helm template test charts/cluster --set barmanCloudPlugin.enabled=true --set barmanCloudPlugin.s3.bucket=my-bucket --set barmanCloudPlugin.s3.secret.create=true --set barmanCloudPlugin.s3.accessKey=access --set barmanCloudPlugin.s3.secretKey=secret
  • helm template test charts/cluster --set barmanCloudPlugin.enabled=true --set barmanCloudPlugin.s3.bucket=my-bucket --set barmanCloudPlugin.s3.externalSecret.enabled=true --set barmanCloudPlugin.s3.externalSecret.secretStoreRef.name=my-store --set barmanCloudPlugin.s3.externalSecret.remoteRefs.accessKeyId.key=secret/data/s3 --set barmanCloudPlugin.s3.externalSecret.remoteRefs.accessKeyId.property=accessKey --set barmanCloudPlugin.s3.externalSecret.remoteRefs.secretAccessKey.key=secret/data/s3 --set barmanCloudPlugin.s3.externalSecret.remoteRefs.secretAccessKey.property=secretKey
  • helm template barman-example charts/cluster --values charts/cluster/examples/barman-cloud-plugin.yaml

Signed-off-by: Federico François <me@franzu.dev>
@franzudev franzudev force-pushed the add-barman-cloud-plugin-cluster branch from eab0093 to 660d56c Compare June 16, 2026 13:48
@franzudev franzudev marked this pull request as ready for review June 16, 2026 13:49
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. chart( cluster ) Related to the cluster chart labels Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart( cluster ) Related to the cluster chart size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant