Skip to content

fix(backup): use Status().Patch for backup status updates in reconcileSnapshotBackup#9551

Merged
mnencia merged 1 commit intomainfrom
dev/backup-patch
Dec 22, 2025
Merged

fix(backup): use Status().Patch for backup status updates in reconcileSnapshotBackup#9551
mnencia merged 1 commit intomainfrom
dev/backup-patch

Conversation

@armru
Copy link
Member

@armru armru commented Dec 22, 2025

The reconcileSnapshotBackup function was incorrectly using r.Patch() instead of r.Status().Patch() when setting backup status to pending. This is inconsistent with all other status patch operations in the controller and could cause issues since .status is a subresource that requires the status client.

@armru armru added the no-issue label Dec 22, 2025
@armru armru requested a review from a team as a code owner December 22, 2025 14:48
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 22, 2025
@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 Dec 22, 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 bug 🐛 Something isn't working ok to merge 👌 This PR can be merged labels Dec 22, 2025
@armru
Copy link
Member Author

armru commented Dec 22, 2025

/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/20435438917

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 22, 2025
@mnencia mnencia force-pushed the dev/backup-patch branch 2 times, most recently from e63248f to bd5c117 Compare December 22, 2025 17:25
@mnencia
Copy link
Member

mnencia commented Dec 22, 2025

/ok-to-merge E2E green

…eSnapshotBackup

The reconcileSnapshotBackup function was incorrectly using r.Patch() instead
of r.Status().Patch() when setting backup status to pending. This is
inconsistent with all other status patch operations in the controller
and could cause issues since .status is a subresource that requires
the status client.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
@mnencia mnencia merged commit 9f3c487 into main Dec 22, 2025
23 of 26 checks passed
@mnencia mnencia deleted the dev/backup-patch branch December 22, 2025 17:27
@mnencia mnencia added do not backport This PR must not be backported - it will be in the next minor release and removed release-1.27 release-1.28 backport-requested ◀️ This pull request should be backported to all supported releases do not backport This PR must not be backported - it will be in the next minor release labels Dec 22, 2025
@mnencia mnencia added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.27 release-1.28 labels Dec 22, 2025
mnencia pushed a commit that referenced this pull request Dec 22, 2025
…eSnapshotBackup (#9551)

The reconcileSnapshotBackup function was incorrectly using r.Patch()
instead of r.Status().Patch() when setting backup status to pending.
This is inconsistent with all other status patch operations in the
controller and could cause issues since .status is a subresource that
requires the status client.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit 9f3c487)
mnencia pushed a commit that referenced this pull request Dec 22, 2025
…eSnapshotBackup (#9551)

The reconcileSnapshotBackup function was incorrectly using r.Patch()
instead of r.Status().Patch() when setting backup status to pending.
This is inconsistent with all other status patch operations in the
controller and could cause issues since .status is a subresource that
requires the status client.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit 9f3c487)
mnencia pushed a commit that referenced this pull request Dec 22, 2025
…eSnapshotBackup (#9551)

The reconcileSnapshotBackup function was incorrectly using r.Patch()
instead of r.Status().Patch() when setting backup status to pending.
This is inconsistent with all other status patch operations in the
controller and could cause issues since .status is a subresource that
requires the status client.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit 9f3c487)
mnencia pushed a commit that referenced this pull request Jan 20, 2026
…eSnapshotBackup (#9551)

The reconcileSnapshotBackup function was incorrectly using r.Patch()
instead of r.Status().Patch() when setting backup status to pending.
This is inconsistent with all other status patch operations in the
controller and could cause issues since .status is a subresource that
requires the status client.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit 9f3c487)
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.25 release-1.27 release-1.28 size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants