Skip to content

fix(backup): do not check Cluster spec.backup if method is plugin#8486

Merged
mnencia merged 1 commit intomainfrom
dev/fix-plugin-backup
Sep 3, 2025
Merged

fix(backup): do not check Cluster spec.backup if method is plugin#8486
mnencia merged 1 commit intomainfrom
dev/fix-plugin-backup

Conversation

@armru
Copy link
Member

@armru armru commented Aug 29, 2025

This patch addresses a regression introduced by #8320 that does not affect any released version.

The regression made it impossible to perform backups using a plugin, as the controller would incorrectly require and validate the spec.backup field even when the backup method was set to plugin. With this change, validating the spec.backup field is skipped when using plugin-based backups, restoring the expected behavior for plugin users.

@armru armru added the no-issue label Aug 29, 2025
@armru armru requested a review from a team as a code owner August 29, 2025 13:40
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 29, 2025
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.26 release-1.27 labels Aug 29, 2025
@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 the bug 🐛 Something isn't working label Aug 29, 2025
@armru armru force-pushed the dev/fix-plugin-backup branch from 9b41349 to 6705cbd Compare August 29, 2025 14:03
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Aug 29, 2025
@armru
Copy link
Member Author

armru commented Aug 29, 2025

/test limit=local

@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/17326178551

@armru armru force-pushed the dev/fix-plugin-backup branch from 6705cbd to e14f669 Compare August 29, 2025 14:18
@armru armru changed the title fix: do not check Cluster spec.backup if method is plugin fix(backup): do not check Cluster spec.backup if method is plugin Aug 29, 2025
@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Aug 29, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 1, 2025
@mnencia mnencia force-pushed the dev/fix-plugin-backup branch from e14f669 to 56b6318 Compare September 2, 2025 17:24
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
@fcanovai fcanovai force-pushed the dev/fix-plugin-backup branch from 56b6318 to 4553250 Compare September 3, 2025 09:22
@mnencia mnencia merged commit d1b5dfb into main Sep 3, 2025
35 checks passed
@mnencia mnencia deleted the dev/fix-plugin-backup branch September 3, 2025 11:26
cnpg-bot pushed a commit that referenced this pull request Sep 3, 2025
…#8486)

This patch addresses a regression introduced by #8320 that does not
affect any released version.

The regression made it impossible to perform backups using a plugin, as
the controller would incorrectly require and validate the `spec.backup`
field even when the backup method was set to plugin. With this change,
validating the `spec.backup` field is skipped when using plugin-based
backups, restoring the expected behavior for plugin users.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit d1b5dfb)
THE-BRAHMA pushed a commit to THE-BRAHMA/cloudnative-pg that referenced this pull request Oct 6, 2025
…cloudnative-pg#8486)

This patch addresses a regression introduced by cloudnative-pg#8320 that does not
affect any released version.

The regression made it impossible to perform backups using a plugin, as
the controller would incorrectly require and validate the `spec.backup`
field even when the backup method was set to plugin. With this change,
validating the `spec.backup` field is skipped when using plugin-based
backups, restoring the expected behavior for plugin users.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
THE-BRAHMA pushed a commit to THE-BRAHMA/cloudnative-pg that referenced this pull request Oct 30, 2025
…cloudnative-pg#8486)

This patch addresses a regression introduced by cloudnative-pg#8320 that does not
affect any released version.

The regression made it impossible to perform backups using a plugin, as
the controller would incorrectly require and validate the `spec.backup`
field even when the backup method was set to plugin. With this change,
validating the `spec.backup` field is skipped when using plugin-based
backups, restoring the expected behavior for plugin users.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
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 no-issue ok to merge 👌 This PR can be merged release-1.27 size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants