containerized-data-importer/pkg/controller/clone
alromeros 4c911fed27
Fix PVC deletion logic in populators (#3362)
* Fix PVC' deletion logic in CDI populators

This commit ensures that we only proceed with PVC' deletion after confirming that the target PVC is rebound.

Signed-off-by: Alvaro Romero <alromero@redhat.com>

* Refactor IsBound so we check PVC status instead of spec

PVC status should be the definitive source to know whether the PVC is bound or not. This commit updates our IsBound function to use status instead of spec.

It also updates unit tests and related code to match the new behavior.

Signed-off-by: Alvaro Romero <alromero@redhat.com>

* Add check for lost target PVC in populators

Signed-off-by: Alvaro Romero <alromero@redhat.com>

---------

Signed-off-by: Alvaro Romero <alromero@redhat.com>
2024-08-22 22:22:35 +02:00
..
BUILD.bazel Fix progress metric registration and parsing (#3292) 2024-06-03 13:25:37 +02:00
clone_suite_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
common.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
csi-clone_test.go Fix PVC deletion logic in populators (#3362) 2024-08-22 22:22:35 +02:00
csi-clone.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
host-clone_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
host-clone.go Fix progress metric registration and parsing (#3292) 2024-06-03 13:25:37 +02:00
planner_test.go Fix PVC deletion logic in populators (#3362) 2024-08-22 22:22:35 +02:00
planner.go update to k8s 1.30 libs and controller-runtime 0.18.4 (#3336) 2024-07-14 20:12:50 +02:00
prep-claim_test.go Fix PVC deletion logic in populators (#3362) 2024-08-22 22:22:35 +02:00
prep-claim.go Fix PVC deletion logic in populators (#3362) 2024-08-22 22:22:35 +02:00
rebind_test.go Fix PVC deletion logic in populators (#3362) 2024-08-22 22:22:35 +02:00
rebind.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
snap-clone_test.go Fix PVC deletion logic in populators (#3362) 2024-08-22 22:22:35 +02:00
snap-clone.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
snapshot_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
snapshot.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00