Files
velero/pkg/util
Tiger Kaovilai 71ddeefcd6 Fix VolumePolicy PVC phase condition filter for unbound PVCs
Use typed error approach: Make GetPVForPVC return ErrPVNotFoundForPVC
when PV is not expected to be found (unbound PVC), then use errors.Is
to check for this error type. When a matching policy exists (e.g.,
pvcPhase: [Pending, Lost] with action: skip), apply the action without
error. When no policy matches, return the original error to preserve
default behavior.

Changes:
- Add ErrPVNotFoundForPVC sentinel error to pvc_pv.go
- Update ShouldPerformSnapshot to handle unbound PVCs with policies
- Update ShouldPerformFSBackup to handle unbound PVCs with policies
- Update item_backupper.go to handle Lost PVCs in tracking functions
- Remove checkPVCOnlySkip helper (no longer needed)
- Update tests to reflect new behavior

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-09 01:03:45 -05:00
..
2025-12-02 12:28:03 -05:00
2025-10-09 14:13:43 -04:00
2025-01-17 07:58:10 +01:00
2025-06-26 08:05:50 +02:00
2025-12-02 12:28:03 -05:00
2024-04-10 14:53:29 +08:00
2025-09-11 13:04:24 +08:00
2024-04-10 14:53:29 +08:00
2025-02-25 10:44:45 +08:00