Skip to content

feat: allow custom binary paths for PostgreSQL extensions#10250

Merged
gbartolini merged 11 commits intomainfrom
dev/10152
Mar 11, 2026
Merged

feat: allow custom binary paths for PostgreSQL extensions#10250
gbartolini merged 11 commits intomainfrom
dev/10152

Conversation

@NiccoloFei
Copy link
Collaborator

@NiccoloFei NiccoloFei commented Mar 9, 2026

Add a bin_path field to the postgresql.extensions stanza, allowing extensions to specify directory paths for external binaries. These paths are automatically appended to the PATH environment variable for the Postgres process. This field is also supported in:

  • ClusterImageCatalog.spec.images[].extensions[].bin_path
  • ImageCatalog.spec.images[].extensions[].bin_path

This enables extensions that rely on external CLI tools to function correctly within the containerized environment.

Closes #10152

@NiccoloFei NiccoloFei requested review from a team and jsilvela as code owners March 9, 2026 16:42
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 9, 2026
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.27 release-1.28 labels Mar 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@dosubot dosubot bot added the enhancement 🪄 New feature or request label Mar 9, 2026
@NiccoloFei NiccoloFei force-pushed the dev/10152 branch 3 times, most recently from 999e451 to 846b88a Compare March 10, 2026 11:50
@NiccoloFei NiccoloFei changed the title feat: Add path option to extension images feat: Add bin_path option to extension images Mar 10, 2026
@gbartolini gbartolini changed the title feat: Add bin_path option to extension images feat: Add bin_path option to extension images Mar 10, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 11, 2026
@armru
Copy link
Member

armru commented Mar 11, 2026

/test

@github-actions
Copy link
Contributor

@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/22963232450

NiccoloFei and others added 6 commits March 11, 2026 19:35
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
NiccoloFei and others added 4 commits March 11, 2026 19:35
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Improve inconsistent title casing in the extension docs and improve
comments on collectLibraryPaths/collectBinPaths to document
filepath.Join normalization behavior.

Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
@mnencia
Copy link
Member

mnencia commented Mar 11, 2026

/test

@github-actions
Copy link
Contributor

@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/22968530154

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Mar 11, 2026
Signed-off-by: Gabriele Bartolini <[email protected]>
@gbartolini gbartolini changed the title feat: Add bin_path option to extension images feat: allow custom binary paths for PostgreSQL extensions Mar 11, 2026
@gbartolini gbartolini merged commit f2434be into main Mar 11, 2026
42 checks passed
@gbartolini gbartolini deleted the dev/10152 branch March 11, 2026 23:22
@mnencia mnencia added do not backport This PR must not be backported - it will be in the next minor release release-1.27 release-1.28 and removed release-1.25 release-1.27 release-1.28 backport-requested ◀️ This pull request should be backported to all supported releases labels Mar 12, 2026
@mnencia
Copy link
Member

mnencia commented Mar 12, 2026

Manually backported the CRD only to

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

Labels

do not backport This PR must not be backported - it will be in the next minor release enhancement 🪄 New feature or request lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged release-1.27 release-1.28 size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add path option to extension images

6 participants