Skip to content

fix(recovery): fix external cluster validation#10268

Merged
leonardoce merged 2 commits intomainfrom
dev/10260
Mar 10, 2026
Merged

fix(recovery): fix external cluster validation#10268
leonardoce merged 2 commits intomainfrom
dev/10260

Conversation

@gbartolini
Copy link
Contributor

@gbartolini gbartolini commented Mar 10, 2026

Add missing check for ConnectionParameters in validateBootstrapRecoverySource and update the error message to include all valid configuration types.

Closes #10260

@gbartolini gbartolini requested a review from a team as a code owner March 10, 2026 11:41
@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 10, 2026
@github-actions
Copy link
Contributor

❗ 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 size:XS This PR changes 0-9 lines, ignoring generated files. bug 🐛 Something isn't working labels Mar 10, 2026
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Mar 10, 2026
@armru armru changed the title fix(webhook): fix external cluster recovery validation fix(recovery): fix external cluster recovery validation Mar 10, 2026
@armru armru changed the title fix(recovery): fix external cluster recovery validation fix(recovery): fix external cluster validation Mar 10, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 10, 2026
@leonardoce
Copy link
Contributor

/test

@github-actions
Copy link
Contributor

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

gbartolini and others added 2 commits March 10, 2026 15:05
Add missing check for `ConnectionParameters` in `validateBootstrapRecoverySource`
and update the error message to include all valid configuration types.

Closes #10260

Signed-off-by: Gabriele Bartolini <[email protected]>
Also removed the sourceName check given that it was already done

Signed-off-by: Armando Ruocco <[email protected]>
@leonardoce
Copy link
Contributor

/ok-to-merge failures are not related

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Mar 10, 2026
@leonardoce leonardoce merged commit 6ee3d66 into main Mar 10, 2026
66 of 72 checks passed
@leonardoce leonardoce deleted the dev/10260 branch March 10, 2026 16:27
cnpg-bot pushed a commit that referenced this pull request Mar 10, 2026
Add missing check for `ConnectionParameters` in
`validateBootstrapRecoverySource` and update the error message to
include all valid configuration types.

Closes #10260

Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 6ee3d66)
cnpg-bot pushed a commit that referenced this pull request Mar 10, 2026
Add missing check for `ConnectionParameters` in
`validateBootstrapRecoverySource` and update the error message to
include all valid configuration types.

Closes #10260

Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 6ee3d66)
cnpg-bot pushed a commit that referenced this pull request Mar 10, 2026
Add missing check for `ConnectionParameters` in
`validateBootstrapRecoverySource` and update the error message to
include all valid configuration types.

Closes #10260

Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 6ee3d66)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases bug 🐛 Something isn't working lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged release-1.25 release-1.27 release-1.28 size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Prevent using external cluster in a replica cluster when providing connection parameters

4 participants