Skip to content

feat: allow ObjectStore sidecar image override - #1048

Open
ChandonPierre wants to merge 1 commit into
cloudnative-pg:mainfrom
ChandonPierre:cpierre/objectstore-sidecar-image
Open

feat: allow ObjectStore sidecar image override#1048
ChandonPierre wants to merge 1 commit into
cloudnative-pg:mainfrom
ChandonPierre:cpierre/objectstore-sidecar-image

Conversation

@ChandonPierre

Copy link
Copy Markdown

The current configuration derives the sidecar image from configuration paramter sidecar-image:

sidecarTemplate.Image = viper.GetString("sidecar-image")

However, this is challenging for multi-tenant Kubernetes clusters, as the plugin deployment defines the target sidecar image for all CNPG clusters within a given Kubernetes cluster.

In this PR, we add an optional sidecarImage field to ObjectStore.spec.instanceSidecarConfiguration.

This allows workloads using a specific ObjectStore to override the Barman Cloud sidecar image configured globally on the plugin deployment.

Relates to #456

The current configuration derives the sidecar image from configuration paramter `sidecar-image`: https://github.com/cloudnative-pg/plugin-barman-cloud/blob/1e13020fe5f09fd8fc29ea03828f7b61375b3721/internal/cnpgi/operator/lifecycle.go#L418

However, this is challenging for multi-tenant Kubernetes clusters, as the plugin deployment defines the target sidecar image for all CNPG clusters within a given Kubernetes cluster.

In this PR, we add an optional `sidecarImage` field to `ObjectStore.spec.instanceSidecarConfiguration`.

This allows workloads using a specific ObjectStore to override the Barman Cloud sidecar image configured globally on the plugin deployment.

Signed-off-by: Chandon Pierre <cpierre@coreweave.com>
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request go Pull requests that update go code labels Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code 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