Skip to content

feat(olm): add kustomize overlay for the OLM bundle manifests - #1202

Draft
GabriFedi97 wants to merge 4 commits into
cloudnative-pg:mainfrom
GabriFedi97:dev/1194
Draft

GabriFedi97 wants to merge 4 commits into
cloudnative-pg:mainfrom
GabriFedi97:dev/1194

Conversation

@GabriFedi97

@GabriFedi97 GabriFedi97 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Adds the kustomize overlay that renders the plugin manifests for the OLM bundle (config/olm), plus a scorecard configuration (config/scorecard).

The overlay includes:

  • Builds on kubernetes/, removing the cert-manager resources and the sidecar image Secret, which an OLM bundle can't use.
  • Makes the TLS secret volumes optional, so the plugin installs without cert-manager and starts serving once the user creates the secrets.
  • Sets the plugin and sidecar images from templates rendered by task olm:kustomization-patches PLUGIN_IMAGE=… SIDECAR_IMAGE=… into the git-ignored config/olm/generated/. The CSV containerImage is copied from the Deployment image with a kustomize replacement.
  • Exposes the sidecar as RELATED_IMAGE_SIDECAR, so it's listed in the CSV relatedImages and pinned with --use-image-digests.
  • Ships a scorecard config with the basic and olm suites.

Closes #1194

GabriFedi97 and others added 4 commits October 27, 2026 10:38
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Adds an ObjectStore resource example so it can
be used to fill the CSV annotations.alm-examples
field

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Render the plugin manifests for the OLM bundle without cert-manager:
the TLS secret volumes are optional and the plugin, sidecar and CSV
images are set from templates rendered by the
olm:kustomization-patches task. The bundle also ships a scorecard
configuration, whose test images are kept up to date by Renovate.

Assisted-by: Claude Opus 5.5
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OperatorHub]: Add OLM Kustomization Overlays

2 participants